Allow quitting to menu if gamestate is EDITORMODE

Otherwise you wouldn't be able to quit from the editor normally.
This commit is contained in:
Misa
2023-05-20 15:22:08 -07:00
parent 24ef59c65e
commit 25b4361563

View File

@@ -7177,7 +7177,7 @@ static void returntoeditor_callback(void)
void Game::quittomenu(void) void Game::quittomenu(void)
{ {
#if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR) #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 /* We are playtesting! Go back to the editor
* instead of losing unsaved changes. */ * instead of losing unsaved changes. */