mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Stop the random shootings at dummy switch
This commit is contained in:
parent
4543698b38
commit
25cfa741e5
|
@ -463,12 +463,12 @@ void CClient::SendInput()
|
|||
m_CurrentInput[g_Config.m_ClDummy]%=200;
|
||||
|
||||
SendMsgEx(&Msg, MSGFLAG_FLUSH);
|
||||
}
|
||||
|
||||
if(m_LastDummy != g_Config.m_ClDummy)
|
||||
{
|
||||
mem_copy(&DummyInput, &m_aInputs[!g_Config.m_ClDummy][(m_CurrentInput[!g_Config.m_ClDummy]+200-1)%200], sizeof(DummyInput));
|
||||
m_LastDummy = g_Config.m_ClDummy;
|
||||
}
|
||||
if(m_LastDummy != g_Config.m_ClDummy)
|
||||
{
|
||||
mem_copy(&DummyInput, &m_aInputs[!g_Config.m_ClDummy][(m_CurrentInput[!g_Config.m_ClDummy]+200-1)%200], sizeof(DummyInput));
|
||||
m_LastDummy = g_Config.m_ClDummy;
|
||||
}
|
||||
|
||||
if(!g_Config.m_ClDummy)
|
||||
|
|
Loading…
Reference in a new issue