1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

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)
{
#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. */