From 25cfa741e54c46132227853ede36cf211cbb2bda Mon Sep 17 00:00:00 2001 From: def Date: Sat, 10 May 2014 20:23:26 +0200 Subject: [PATCH] Fix: Stop the random shootings at dummy switch --- src/engine/client/client.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index b8c3a52ba..0ba0e5f8b 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -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)