Dynamic Camera button: Use g_Config.m_ClDyncam as pID

This commit is contained in:
def 2020-09-29 08:25:34 +02:00
parent 16f965a0e6
commit e4023cb18b

View file

@ -91,7 +91,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
// dynamic camera
Left.HSplitTop(20.0f, &Button, &Left);
bool IsDyncam = g_Config.m_ClDyncam || g_Config.m_ClMouseFollowfactor > 0;
if(DoButton_CheckBox(&IsDyncam, Localize("Dynamic Camera"), IsDyncam, &Button))
if(DoButton_CheckBox(&g_Config.m_ClDyncam, Localize("Dynamic Camera"), IsDyncam, &Button))
{
if(IsDyncam)
{