Fix dummy input reset

This commit is contained in:
heinrich5991 2017-03-06 19:45:39 +01:00
parent 8e7e2be54a
commit e08ca70b1f
3 changed files with 3 additions and 2 deletions

View file

@ -77,7 +77,7 @@ void CControls::OnReset()
void CControls::ResetInput(int Dummy)
{
m_LastData[Dummy].m_Direction = 0;
//m_LastData.m_Hook = 0;
//m_LastData[Dummy].m_Hook = 0;
// simulate releasing the fire button
if((m_LastData[Dummy].m_Fire&1) != 0)
m_LastData[Dummy].m_Fire++;

View file

@ -44,6 +44,6 @@ public:
int SnapInput(int *pData);
void ClampMousePos();
void ResetInput(int dummy);
void ResetInput(int Dummy);
};
#endif

View file

@ -392,6 +392,7 @@ void CGameClient::OnDummySwap()
if (g_Config.m_ClDummyResetOnSwitch)
{
m_pControls->ResetInput(!g_Config.m_ClDummy);
m_pControls->m_InputData[!g_Config.m_ClDummy].m_Hook = 0;
}
m_DummyInput = m_pControls->m_InputData[!g_Config.m_ClDummy];
}