mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01: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…
Reference in New Issue
Block a user