mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix dummy hammer interval, this became incorrect after a few days
This commit is contained in:
parent
3cf8048608
commit
2f4ccb94de
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue