mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #1048 from Learath2/dd_pr_dyncamtoggle
Fix dyncam confusion. Closes #783
This commit is contained in:
commit
9428b2771e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue