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,13 +463,13 @@ 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(!g_Config.m_ClDummy)
|
||||
m_LocalIDs[0] = ((CGameClient *)GameClient())->m_Snap.m_LocalClientID;
|
||||
|
|
Loading…
Reference in a new issue