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:
parent
d774c9e0f9
commit
a4acefb25c
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user