Fix dyncam confusion. Closes #783

Remove "vanilla" dyncam toggle.
This commit is contained in:
Learath 2018-02-22 20:38:26 +01:00
parent 6c41e95f25
commit 20cac1c2bb

View file

@ -73,22 +73,8 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
// dynamic camera
Left.HSplitTop(20.0f, &Button, &Left);
static int s_DynamicCameraButton = 0;
if(DoButton_CheckBox(&s_DynamicCameraButton, Localize("Dynamic Camera"), g_Config.m_ClMouseDeadzone != 0, &Button))
{
if(g_Config.m_ClMouseDeadzone)
{
g_Config.m_ClMouseFollowfactor = 0;
g_Config.m_ClMouseMaxDistance = 400;
g_Config.m_ClMouseDeadzone = 0;
}
else
{
g_Config.m_ClMouseFollowfactor = 60;
g_Config.m_ClMouseMaxDistance = 1000;
g_Config.m_ClMouseDeadzone = 300;
}
}
if(DoButton_CheckBox(&g_Config.m_ClDyncam, Localize("Dynamic Camera"), g_Config.m_ClDyncam, &Button))
g_Config.m_ClDyncam ^= 1;
// weapon pickup
Left.HSplitTop(5.0f, 0, &Left);