From: Holger Schemel Date: Thu, 26 Sep 2024 21:47:40 +0000 (+0200) Subject: fixed bug with handling player birth game elements before hatching X-Git-Tag: 4.4.0.0-test-4~190 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cf8b45e7edf0ba881073cc339551e68c237f0e57;p=rocksndiamonds.git 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". --- 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;