mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #2159
2159: Make the dummy always press fire when cl_dummy_hammer is active r=heinrich5991 a=trml Co-authored-by: trml <trml@users.noreply.github.com>
This commit is contained in:
commit
65284f3a28
|
@ -413,7 +413,7 @@ int CGameClient::OnSnapInput(int *pData, bool Dummy, bool Force)
|
|||
{
|
||||
if(m_DummyFire != 0)
|
||||
{
|
||||
m_DummyInput.m_Fire = m_HammerInput.m_Fire;
|
||||
m_DummyInput.m_Fire = (m_HammerInput.m_Fire+1) & ~1;
|
||||
m_DummyFire = 0;
|
||||
}
|
||||
|
||||
|
@ -434,7 +434,7 @@ int CGameClient::OnSnapInput(int *pData, bool Dummy, bool Force)
|
|||
}
|
||||
m_DummyFire++;
|
||||
|
||||
m_HammerInput.m_Fire += 2;
|
||||
m_HammerInput.m_Fire = (m_HammerInput.m_Fire+1) | 1;
|
||||
m_HammerInput.m_WantedWeapon = WEAPON_HAMMER + 1;
|
||||
if(!g_Config.m_ClDummyRestoreWeapon)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue