Fix crash when auto update is off

Since 2696ac134c, whether to include auto
update related code should only control by macro CONF_AUTOUPDATE.

This commit should fix #1374
This commit is contained in:
Shengyu Zhang 2018-12-05 00:59:42 +08:00
parent 6ad686eee2
commit 464ef9e74b
2 changed files with 2 additions and 2 deletions

View file

@ -1296,7 +1296,7 @@ void CMenus::RenderServerbrowser(CUIRect MainView)
StatusBox.HSplitTop(5.0f, 0, &StatusBox);
// version note
#if defined(CONF_FAMILY_WINDOWS) || (defined(CONF_PLATFORM_LINUX) && !defined(__ANDROID__))
#if defined(CONF_AUTO_UPDATE)
CUIRect Part;
StatusBox.HSplitBottom(15.0f, &StatusBox, &Button);
char aBuf[64];

View file

@ -2192,7 +2192,7 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
}
// Updater
#if defined(CONF_FAMILY_WINDOWS) || (defined(CONF_PLATFORM_LINUX) && !defined(__ANDROID__))
#if defined(CONF_AUTOUPDATE)
{
Left.HSplitTop(20.0f, &Label, &Left);
bool NeedUpdate = str_comp(Client()->LatestVersion(), "0");