Merge pull request #7574 from furo321/remove-telecursor

Don't scale TargetXY by zoom when in spectator.
This commit is contained in:
heinrich5991 2023-12-11 23:50:21 +00:00 committed by GitHub
commit e4c97e5583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.
m_aInputData[g_Config.m_ClDummy].m_TargetX *= m_pClient->m_Camera.m_Zoom; if(!m_pClient->m_Snap.m_SpecInfo.m_Active)
m_aInputData[g_Config.m_ClDummy].m_TargetY *= 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;
}
// dummy copy moves // dummy copy moves
if(g_Config.m_ClDummyCopyMoves) if(g_Config.m_ClDummyCopyMoves)