mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Fix dummy hammer when switching with copy moves turned on
This commit is contained in:
parent
3defe8eb0e
commit
978b1a46ec
|
@ -286,7 +286,8 @@ int CControls::SnapInput(int *pData)
|
|||
pDummyInput->m_WantedWeapon = m_aInputData[g_Config.m_ClDummy].m_WantedWeapon;
|
||||
|
||||
if(!g_Config.m_ClDummyControl)
|
||||
pDummyInput->m_Fire += m_aInputData[g_Config.m_ClDummy].m_Fire - m_aLastData[g_Config.m_ClDummy].m_Fire;
|
||||
if ((m_aInputData[g_Config.m_ClDummy].m_Fire - m_aLastData[g_Config.m_ClDummy].m_Fire & 1) != 0)
|
||||
pDummyInput->m_Fire++;
|
||||
|
||||
pDummyInput->m_NextWeapon += m_aInputData[g_Config.m_ClDummy].m_NextWeapon - m_aLastData[g_Config.m_ClDummy].m_NextWeapon;
|
||||
pDummyInput->m_PrevWeapon += m_aInputData[g_Config.m_ClDummy].m_PrevWeapon - m_aLastData[g_Config.m_ClDummy].m_PrevWeapon;
|
||||
|
|
Loading…
Reference in a new issue