From 4ace8d15be1d3b39f4ce9ae16d08da5d46a6ae92 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 15 Apr 2020 16:51:58 -0700 Subject: [PATCH] Fix NO_CUSTOM_LEVELS builds breaking after command-line playtesting --- desktop_version/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 289be756..b130ac41 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -273,6 +273,7 @@ int main(int argc, char *argv[]) obj.init(); +#if !defined(NO_CUSTOM_LEVELS) if (startinplaytest) { game.levelpage = 0; game.playcustomlevel = 0; @@ -307,6 +308,7 @@ int main(int argc, char *argv[]) graphics.fademode = 0; } +#endif volatile Uint32 time, timePrev = 0; game.infocus = true;