diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 29924fa1f..f3a1159c2 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -415,7 +415,7 @@ int CGameClient::OnSnapInput(int *pData, bool Dummy, bool Force) } else { - if((m_DummyFire / 12.5f) - (int)(m_DummyFire / 12.5f) > 0.01f) + if(m_DummyFire % 25 != 0) { m_DummyFire++; return 0; diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index 7a0cd387f..4dab565fc 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -499,7 +499,7 @@ public: int m_LocalIDs[NUM_DUMMIES]; CNetObj_PlayerInput m_DummyInput; CNetObj_PlayerInput m_HammerInput; - int m_DummyFire; + unsigned int m_DummyFire; bool m_ReceivedDDNetPlayer; class CTeamsCore m_Teams;