Don't scale TargetXY when in spectator

This commit is contained in:
furo 2023-12-09 01:44:00 +01:00
parent 9667bd6cc1
commit bac3670296

View file

@ -267,8 +267,11 @@ int CControls::SnapInput(int *pData)
m_aInputData[g_Config.m_ClDummy].m_Direction = 1; m_aInputData[g_Config.m_ClDummy].m_Direction = 1;
// scale TargetX, TargetY by zoom. // scale TargetX, TargetY by 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_TargetX *= m_pClient->m_Camera.m_Zoom;
m_aInputData[g_Config.m_ClDummy].m_TargetY *= m_pClient->m_Camera.m_Zoom; m_aInputData[g_Config.m_ClDummy].m_TargetY *= m_pClient->m_Camera.m_Zoom;
}
// dummy copy moves // dummy copy moves
if(g_Config.m_ClDummyCopyMoves) if(g_Config.m_ClDummyCopyMoves)