Skip to content

Commit

Permalink
Fix sending Health message to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed May 24, 2024
1 parent 872de64 commit 126650c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,8 @@ void CBasePlayer::Killed( entvars_t *pevInflictor, entvars_t *pevAttacker, int i
m_iClientHealth = 0;
m_iClientMaxHealth = (int)pev->max_health;
MESSAGE_BEGIN( MSG_ONE, gmsgHealth, NULL, pev );
WRITE_BYTE( m_iClientHealth );
WRITE_BYTE( (int)pev->max_health );
WRITE_SHORT( m_iClientHealth );
WRITE_SHORT( (int)pev->max_health );
MESSAGE_END();

// Tell Ammo Hud that the player is dead
Expand Down

0 comments on commit 126650c

Please sign in to comment.