finally fixed small door request bug in level editor
authorHolger Schemel <info@artsoft.org>
Wed, 8 Oct 2014 09:42:01 +0000 (11:42 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 8 Oct 2014 09:42:01 +0000 (11:42 +0200)
src/editor.c

index a66e960433248d0b2f10db377a84a6d4adc4c139..e8bc4e2082506f97c110c19c1ef37fa74081eea5 100644 (file)
@@ -11869,7 +11869,10 @@ void RequestExitLevelEditor(boolean ask_if_level_has_changed,
   }
   else
   {
-    CloseDoor(DOOR_CLOSE_1);
-    OpenDoor(DOOR_OPEN_1 | DOOR_COPY_BACK);
+    if (!global.use_envelope_request)
+    {
+      CloseDoor(DOOR_CLOSE_1);
+      OpenDoor(DOOR_OPEN_1 | DOOR_COPY_BACK);
+    }
   }
 }