2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-24 10:50:48 +01:00

Call DeathMsg for non-VGUI scoreboard (used to highlight the killer) (#456)

This commit is contained in:
Roman Chistokhodov 2024-06-09 12:53:57 +03:00 committed by GitHub
parent d774c9e0f9
commit a4acefb25c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,9 +175,11 @@ int CHudDeathNotice::MsgFunc_DeathMsg( const char *pszName, int iSize, void *pbu
strncat( killedwith, READ_STRING(), sizeof(killedwith) - strlen(killedwith) - 1 ); strncat( killedwith, READ_STRING(), sizeof(killedwith) - strlen(killedwith) - 1 );
killedwith[sizeof(killedwith) - 1] = '\0'; killedwith[sizeof(killedwith) - 1] = '\0';
#if USE_VGUI #if USE_VGUI && !USE_NOVGUI_SCOREBOARD
if (gViewPort) if (gViewPort)
gViewPort->DeathMsg( killer, victim ); gViewPort->DeathMsg( killer, victim );
#else
gHUD.m_Scoreboard.DeathMsg( killer, victim );
#endif #endif
gHUD.m_Spectator.DeathMessage( victim ); gHUD.m_Spectator.DeathMessage( victim );