mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix dummy input reset
This commit is contained in:
parent
8e7e2be54a
commit
e08ca70b1f
|
@ -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++;
|
||||
|
|
|
@ -44,6 +44,6 @@ public:
|
|||
|
||||
int SnapInput(int *pData);
|
||||
void ClampMousePos();
|
||||
void ResetInput(int dummy);
|
||||
void ResetInput(int Dummy);
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue