1
0
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:
Scott Ehlert
2008-09-15 01:33:59 -05:00
parent 325306db96
commit 4c2b8fd6c4
543 changed files with 100067 additions and 91817 deletions

View File

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