From 2f4ccb94defeaf8e6b0dee201852e24e37c1efb0 Mon Sep 17 00:00:00 2001 From: c0d3d3v Date: Mon, 25 Apr 2022 14:10:32 +0200 Subject: [PATCH] fix dummy hammer interval, this became incorrect after a few days --- src/game/client/gameclient.cpp | 2 +- src/game/client/gameclient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;