From 1296b1bf490c271f6e5bb565b2cbdd9fba140a45 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 17 May 2014 19:30:24 +0200 Subject: [PATCH] Fix compile for Mac --- src/game/client/components/menus.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 3ab633133..86706702b 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -955,12 +955,14 @@ int CMenus::Render() pButtonText = Localize("Ok"); ExtraAlign = -1; } +#if !defined(CONF_PLATFORM_MACOSX) else if(m_Popup == POPUP_AUTOUPDATE) { pTitle = Localize("Auto-Update"); pExtraText = Localize("An update to DDNet client is available. Do you want to update now? This may restart the client. If an update fails, make sure the client has permissions to modify files."); ExtraAlign = -1; } +#endif CUIRect Box, Part; Box = Screen; @@ -1012,6 +1014,7 @@ int CMenus::Render() if(DoButton_Menu(&s_ButtonTryAgain, Localize("Yes"), 0, &Yes) || m_EnterPressed) Client()->Quit(); } +#if !defined(CONF_PLATFORM_MACOSX) else if(m_Popup == POPUP_AUTOUPDATE) { CUIRect Yes, No; @@ -1032,6 +1035,7 @@ int CMenus::Render() if(DoButton_Menu(&s_ButtonTryAgain, Localize("Yes"), 0, &Yes) || m_EnterPressed) m_pClient->AutoUpdate()->DoUpdates(this); } +#endif else if(m_Popup == POPUP_PASSWORD) { CUIRect Label, TextBox, TryAgain, Abort;