mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7574 from furo321/remove-telecursor
Don't scale TargetXY by zoom when in spectator.
This commit is contained in:
commit
e4c97e5583
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue