fix-ClDyncamMinDistance camera spawn

This commit is contained in:
FallenKN 2019-07-16 12:56:43 +02:00
parent c2e318985c
commit e80cb9e86a

View file

@ -51,8 +51,8 @@ void CCamera::OnRender()
{
if(m_CamType != CAMTYPE_PLAYER)
{
if(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;
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 + g_Config.m_ClDyncamMinDistance;
else
m_pClient->m_pControls->m_MousePos[g_Config.m_ClDummy] = m_LastPos[g_Config.m_ClDummy];
m_pClient->m_pControls->ClampMousePos();