From a4acefb25c8143d682a6ae6c953166b6cd102398 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sun, 9 Jun 2024 12:53:57 +0300 Subject: [PATCH] Call DeathMsg for non-VGUI scoreboard (used to highlight the killer) (#456) --- cl_dll/death.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cl_dll/death.cpp b/cl_dll/death.cpp index 90024245..606b6405 100644 --- a/cl_dll/death.cpp +++ b/cl_dll/death.cpp @@ -175,9 +175,11 @@ int CHudDeathNotice::MsgFunc_DeathMsg( const char *pszName, int iSize, void *pbu strncat( killedwith, READ_STRING(), sizeof(killedwith) - strlen(killedwith) - 1 ); killedwith[sizeof(killedwith) - 1] = '\0'; -#if USE_VGUI +#if USE_VGUI && !USE_NOVGUI_SCOREBOARD if (gViewPort) gViewPort->DeathMsg( killer, victim ); +#else + gHUD.m_Scoreboard.DeathMsg( killer, victim ); #endif gHUD.m_Spectator.DeathMessage( victim );