From 25b4361563a4bc9ee91c325169297b6c6f3f17f6 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 20 May 2023 15:22:08 -0700 Subject: [PATCH] Allow quitting to menu if gamestate is EDITORMODE Otherwise you wouldn't be able to quit from the editor normally. --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 9c42a635..55e4f77c 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -7177,7 +7177,7 @@ static void returntoeditor_callback(void) void Game::quittomenu(void) { #if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR) - if (map.custommode && !map.custommodeforreal) + if (gamestate != EDITORMODE && map.custommode && !map.custommodeforreal) { /* We are playtesting! Go back to the editor * instead of losing unsaved changes. */