mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Modified SDK for GCC 4.1
This commit is contained in:
@ -115,7 +115,7 @@ void CPlayerResource::UpdatePlayerData( void )
|
||||
UTIL_GetPlayerConnectionInfo( i, ping, packetloss );
|
||||
|
||||
// calc avg for scoreboard so it's not so jittery
|
||||
ping = 0.8f * m_iPing.Get(i) + 0.2f * ping;
|
||||
ping = static_cast<int>(0.8f * m_iPing.Get(i) + 0.2f * ping);
|
||||
|
||||
|
||||
m_iPing.Set( i, ping );
|
||||
|
Reference in New Issue
Block a user