changed BD engine to match new GDash code (cave start)
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 16 Sep 2024 19:44:29 +0000 (21:44 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 16 Sep 2024 19:44:29 +0000 (21:44 +0200)
src/game_bd/bd_caveengine.c

index d37b7f5223453029cc4321e6980947e175d241fd..93a604ffb4df1e77dc28c13828414d9add251df1 100644 (file)
@@ -4238,6 +4238,9 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire,
        cave->creatures_backwards = !cave->creatures_backwards;
     }
 
+    if (cave->player_state == GD_PL_NOT_YET)
+      cave->player_state = GD_PL_LIVING;
+
     gd_sound_play(cave, GD_S_CRACKING, O_INBOX, -1, -1);
   }