From 978b1a46ec64687117fcd322c03741265d3ba2dc Mon Sep 17 00:00:00 2001 From: MrBlubberBut <54787701+MrBlubberBut@users.noreply.github.com> Date: Sun, 31 Dec 2023 00:28:29 -0500 Subject: [PATCH] Fix dummy hammer when switching with copy moves turned on --- src/game/client/components/controls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index c9c852b17..6582fe202 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -286,7 +286,8 @@ int CControls::SnapInput(int *pData) pDummyInput->m_WantedWeapon = m_aInputData[g_Config.m_ClDummy].m_WantedWeapon; if(!g_Config.m_ClDummyControl) - pDummyInput->m_Fire += m_aInputData[g_Config.m_ClDummy].m_Fire - m_aLastData[g_Config.m_ClDummy].m_Fire; + if ((m_aInputData[g_Config.m_ClDummy].m_Fire - m_aLastData[g_Config.m_ClDummy].m_Fire & 1) != 0) + pDummyInput->m_Fire++; pDummyInput->m_NextWeapon += m_aInputData[g_Config.m_ClDummy].m_NextWeapon - m_aLastData[g_Config.m_ClDummy].m_NextWeapon; pDummyInput->m_PrevWeapon += m_aInputData[g_Config.m_ClDummy].m_PrevWeapon - m_aLastData[g_Config.m_ClDummy].m_PrevWeapon;