mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't use OldMousesens if it wasn't initialized
This commit is contained in:
parent
e89843d811
commit
06c4470081
|
@ -136,7 +136,7 @@ void CCamera::ToggleDynamic()
|
||||||
g_Config.m_ClMouseFollowfactor = 0;
|
g_Config.m_ClMouseFollowfactor = 0;
|
||||||
g_Config.m_ClMouseMaxDistance = g_Config.m_DefaultMouseMaxDistance;
|
g_Config.m_ClMouseMaxDistance = g_Config.m_DefaultMouseMaxDistance;
|
||||||
g_Config.m_ClMouseDeadzone = 0;
|
g_Config.m_ClMouseDeadzone = 0;
|
||||||
if(g_Config.m_ClDynCamMousesens)
|
if(g_Config.m_ClDynCamMousesens && s_OldMousesens)
|
||||||
{
|
{
|
||||||
g_Config.m_InpMousesens = s_OldMousesens;
|
g_Config.m_InpMousesens = s_OldMousesens;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue