fix dummy hammer interval, this became incorrect after a few days

This commit is contained in:
c0d3d3v 2022-04-25 14:10:32 +02:00
parent 3cf8048608
commit 2f4ccb94de
No known key found for this signature in database
GPG key ID: 068AF680530DFF31
2 changed files with 2 additions and 2 deletions

View file

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

View file

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