mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix-ClDyncamMinDistance camera spawn
This commit is contained in:
parent
c2e318985c
commit
e80cb9e86a
|
@ -51,8 +51,8 @@ void CCamera::OnRender()
|
||||||
{
|
{
|
||||||
if(m_CamType != CAMTYPE_PLAYER)
|
if(m_CamType != CAMTYPE_PLAYER)
|
||||||
{
|
{
|
||||||
if(m_LastPos[g_Config.m_ClDummy].x < g_Config.m_ClMouseMinDistance)
|
if((m_LastPos[g_Config.m_ClDummy].x < g_Config.m_ClMouseMinDistance) || (m_LastPos[g_Config.m_ClDummy].x < g_Config.m_ClDyncamMinDistance))
|
||||||
m_pClient->m_pControls->m_MousePos[g_Config.m_ClDummy].x = m_LastPos[g_Config.m_ClDummy].x + g_Config.m_ClMouseMinDistance;
|
m_pClient->m_pControls->m_MousePos[g_Config.m_ClDummy].x = m_LastPos[g_Config.m_ClDummy].x + g_Config.m_ClMouseMinDistance + g_Config.m_ClDyncamMinDistance;
|
||||||
else
|
else
|
||||||
m_pClient->m_pControls->m_MousePos[g_Config.m_ClDummy] = m_LastPos[g_Config.m_ClDummy];
|
m_pClient->m_pControls->m_MousePos[g_Config.m_ClDummy] = m_LastPos[g_Config.m_ClDummy];
|
||||||
m_pClient->m_pControls->ClampMousePos();
|
m_pClient->m_pControls->ClampMousePos();
|
||||||
|
|
Loading…
Reference in a new issue