From bac36702964f37dbade73f87fe4a6aa59dd146f5 Mon Sep 17 00:00:00 2001 From: furo Date: Sat, 9 Dec 2023 01:44:00 +0100 Subject: [PATCH] Don't scale TargetXY when in spectator --- src/game/client/components/controls.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 81e415d5e..f72cce98f 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -267,8 +267,11 @@ int CControls::SnapInput(int *pData) m_aInputData[g_Config.m_ClDummy].m_Direction = 1; // scale TargetX, TargetY by zoom. - m_aInputData[g_Config.m_ClDummy].m_TargetX *= m_pClient->m_Camera.m_Zoom; - m_aInputData[g_Config.m_ClDummy].m_TargetY *= m_pClient->m_Camera.m_Zoom; + if(!m_pClient->m_Snap.m_SpecInfo.m_Active) + { + m_aInputData[g_Config.m_ClDummy].m_TargetX *= m_pClient->m_Camera.m_Zoom; + m_aInputData[g_Config.m_ClDummy].m_TargetY *= m_pClient->m_Camera.m_Zoom; + } // dummy copy moves if(g_Config.m_ClDummyCopyMoves)