Fix: Stop the random shootings at dummy switch

This commit is contained in:
def 2014-05-10 20:23:26 +02:00
parent 4543698b38
commit 25cfa741e5

View file

@ -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)