mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't scale TargetXY when in spectator
This commit is contained in:
parent
9667bd6cc1
commit
bac3670296
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue