mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +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:
parent
24ef59c65e
commit
25b4361563
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue