mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add default mouse max distance variable
This commit is contained in:
parent
077db7d149
commit
f004d851e9
|
@ -133,7 +133,7 @@ void CCamera::ToggleDynamic()
|
|||
if(g_Config.m_ClMouseDeadzone)
|
||||
{
|
||||
g_Config.m_ClMouseFollowfactor = 0;
|
||||
g_Config.m_ClMouseMaxDistance = 400;
|
||||
g_Config.m_ClMouseMaxDistance = g_Config.m_DefaultMouseMaxDistance;
|
||||
g_Config.m_ClMouseDeadzone = 0;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -50,6 +50,7 @@ MACRO_CONFIG_INT(ClMouseMaxDistance, cl_mouse_max_distance, 800, 0, 0, CFGFLAG_C
|
|||
#endif
|
||||
|
||||
MACRO_CONFIG_INT(DynCamMaxDistance, cl_dyn_cam_max_distance, 1000, 0, 2000, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Maximal dynamic camera distance")
|
||||
MACRO_CONFIG_INT(DefaultMouseMaxDistance, cl_default_mouse_max_distance, 400, 0, 2000, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Default mouse max distance. Dyncam switches back to it")
|
||||
MACRO_CONFIG_INT(DynCamDeadZone, cl_dyn_cam_dead_zone, 300, 1, 1300, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Dynamic camera dead zone")
|
||||
MACRO_CONFIG_INT(DynCamFollowFactor, cl_dyn_cam_follow_factor, 60, 0, 200, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Dynamic camera follow factor")
|
||||
|
||||
|
|
Loading…
Reference in a new issue