mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
6ad686eee2
commit
464ef9e74b
|
@ -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];
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue