improved door handling when entering level editor with read-only warning
authorHolger Schemel <info@artsoft.org>
Fri, 8 Jan 2021 16:14:52 +0000 (17:14 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 8 Jan 2021 16:14:52 +0000 (17:14 +0100)
src/screens.c

index d596e26..8af8459 100644 (file)
@@ -2169,9 +2169,9 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button)
       {
        if (leveldir_current->readonly &&
            setup.editor.show_read_only_warning)
-         Request("This level is read-only!", REQ_CONFIRM);
+         Request("This level is read-only!", REQ_CONFIRM | REQ_STAY_OPEN);
 
-       CloseDoor(DOOR_CLOSE_2);
+       CloseDoor(DOOR_CLOSE_ALL);
 
        SetGameStatus(GAME_MODE_EDITOR);