2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00

Fix Battery message spam when armorvalue goes fractional

This commit is contained in:
Alibek Omarov 2018-03-03 23:58:19 +03:00
parent f1793248a1
commit ccbc147c90

View File

@ -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;