mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +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;
|
m_iClientHealth = (int)pev->health;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pev->armorvalue != m_iClientBattery )
|
if( (int)pev->armorvalue != m_iClientBattery )
|
||||||
{
|
{
|
||||||
m_iClientBattery = (int)pev->armorvalue;
|
m_iClientBattery = (int)pev->armorvalue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user