mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Fix Battery message spam when armorvalue goes fractional
This commit is contained in:
parent
f1793248a1
commit
ccbc147c90
@ -3935,7 +3935,7 @@ void CBasePlayer::UpdateClientData( void )
|
||||
m_iClientHealth = (int)pev->health;
|
||||
}
|
||||
|
||||
if( pev->armorvalue != m_iClientBattery )
|
||||
if( (int)pev->armorvalue != m_iClientBattery )
|
||||
{
|
||||
m_iClientBattery = (int)pev->armorvalue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user