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 d596e2674eaa13c9ce9265d0b6562b4b04cc9b51..8af84590b36f2a9325874e90a7aa471fa55927ba 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);