From cf8b45e7edf0ba881073cc339551e68c237f0e57 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 26 Sep 2024 23:47:40 +0200 Subject: [PATCH] fixed bug with handling player birth game elements before hatching If player not hatched from inbox yet, do not handle (continue) player birth (effect) elements. Instead, wait for hatching. This correction is needed to be able to solve level 015 of "Super Boulder Dash 1". --- src/game_bd/bd_caveengine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 311da051..1d887030 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -3736,16 +3736,22 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, break; case O_PRE_PL_1: + if (!cave->hatched) // no player birth before hatching + break; cave->player_seen_ago = 0; store(cave, x, y, O_PRE_PL_2); break; case O_PRE_PL_2: + if (!cave->hatched) // no player birth before hatching + break; cave->player_seen_ago = 0; store(cave, x, y, O_PRE_PL_3); break; case O_PRE_PL_3: + if (!cave->hatched) // no player birth before hatching + break; cave->player_seen_ago = 0; store(cave, x, y, O_PLAYER); break; -- 2.34.1