fixed animation for invisible exit in BD engine
authorHolger Schemel <info@artsoft.org>
Mon, 22 Apr 2024 17:07:58 +0000 (19:07 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 22 Apr 2024 17:07:58 +0000 (19:07 +0200)
src/game_bd/bd_cave.c

index 0b635df1dddffacda2c9e52e0b0a61097237082f..d946bac4c203a3decaa24f2304211802e40a217c 100644 (file)
@@ -1522,8 +1522,8 @@ void gd_drawcave_game(const GdCave *cave,
   // change only graphically
   if (hate_invisible_outbox)
   {
-    elemmapping[O_PRE_INVIS_OUTBOX] = O_PRE_OUTBOX;
-    elemmapping[O_INVIS_OUTBOX] = O_OUTBOX;
+    elemmapping[O_PRE_INVIS_OUTBOX] = elemmapping[O_PRE_OUTBOX];
+    elemmapping[O_INVIS_OUTBOX] = elemmapping[O_OUTBOX];
   }
 
   if (hate_invisible_outbox)