mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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);
|
StatusBox.HSplitTop(5.0f, 0, &StatusBox);
|
||||||
|
|
||||||
// version note
|
// version note
|
||||||
#if defined(CONF_FAMILY_WINDOWS) || (defined(CONF_PLATFORM_LINUX) && !defined(__ANDROID__))
|
#if defined(CONF_AUTO_UPDATE)
|
||||||
CUIRect Part;
|
CUIRect Part;
|
||||||
StatusBox.HSplitBottom(15.0f, &StatusBox, &Button);
|
StatusBox.HSplitBottom(15.0f, &StatusBox, &Button);
|
||||||
char aBuf[64];
|
char aBuf[64];
|
||||||
|
|
|
@ -2192,7 +2192,7 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updater
|
// Updater
|
||||||
#if defined(CONF_FAMILY_WINDOWS) || (defined(CONF_PLATFORM_LINUX) && !defined(__ANDROID__))
|
#if defined(CONF_AUTOUPDATE)
|
||||||
{
|
{
|
||||||
Left.HSplitTop(20.0f, &Label, &Left);
|
Left.HSplitTop(20.0f, &Label, &Left);
|
||||||
bool NeedUpdate = str_comp(Client()->LatestVersion(), "0");
|
bool NeedUpdate = str_comp(Client()->LatestVersion(), "0");
|
||||||
|
|
Loading…
Reference in a new issue