Removed now unnecessary menu option to disable map backgrounds

This commit is contained in:
Jordy Ruiz 2018-11-22 01:27:32 +01:00
parent e0d292be63
commit 2909152183

View file

@ -854,7 +854,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
RenderTools()->DrawUIRect(&Game, vec4(0.0f, 0.0f, 0.0f, 0.25f), CUI::CORNER_ALL, 5.0f);
// render client menu background
NumOptions = 4;
NumOptions = 3;
if(g_Config.m_ClAutoDemoRecord) NumOptions += 1;
if(g_Config.m_ClAutoScreenshot) NumOptions += 1;
BackgroundHeight = (float)(NumOptions+1)*ButtonHeight+(float)NumOptions*Spacing;
@ -983,15 +983,6 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
if(DoButton_CheckBox(&s_SkipMainMenu, Localize("Skip the main menu"), g_Config.m_ClSkipStartMenu, &Button))
g_Config.m_ClSkipStartMenu ^= 1;
Client.HSplitTop(Spacing, 0, &Client);
Client.HSplitTop(ButtonHeight, &Button, &Client);
static int s_DisplayAnimatedBackgrounds = 0;
if(DoButton_CheckBox(&s_DisplayAnimatedBackgrounds, Localize("Display animated backgrounds"), g_Config.m_ClShowMenuMap, &Button))
{
g_Config.m_ClShowMenuMap ^= 1;
m_pClient->m_pMapLayersBackGround->BackgroundMapUpdate();
}
Client.HSplitTop(Spacing, 0, &Client);
Client.HSplitTop(ButtonHeight, &Button, &Client);
static int s_AutoDemoRecord = 0;