From b60bfc6bd8ac176461a73dbfc758ee7e03bdf9d7 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 18 Aug 2021 09:26:14 -0700 Subject: [PATCH] Remove level menu rendering code in NO_CUSTOM_LEVELS builds Should have been done earlier, imo. But now that we introduce `ed` the NO_CUSTOM_LEVEL build fails because of it. So just ifdef it out entirely. --- desktop_version/src/Graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index ad60f58b..ac9c75e3 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1593,6 +1593,7 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ ) int x = i*game.menuspacing + game.menuxoff; int y = 140 + i*12 + game.menuyoff; +#ifndef NO_CUSTOM_LEVELS if (levelmenu) { size_t separator; @@ -1615,6 +1616,7 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ ) y += 4; } } +#endif char tempstring[MENU_TEXT_BYTES]; SDL_strlcpy(tempstring, opt.text, sizeof(tempstring));