fixed bug with closing doors when exiting from level editor
authorHolger Schemel <info@artsoft.org>
Mon, 18 Dec 2023 10:41:35 +0000 (11:41 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 18 Dec 2023 10:42:05 +0000 (11:42 +0100)
src/editor.c

index 177336f7f5cfa0e90ba9967c81d9bb8b8ea07db1..671ac61de7551324c23e7c14ecf4d6dd8b83eb3d 100644 (file)
@@ -15283,7 +15283,7 @@ void RequestExitLevelEditor(boolean ask_if_level_has_changed,
        vp_door_2->height == VYSIZE)
       CloseDoor(DOOR_CLOSE_ALL | DOOR_NO_DELAY);
     else
-      SetDoorState(DOOR_CLOSE_2);
+      SetDoorState(DOOR_CLOSE_ALL);
 
     BackToFront();