From: Holger Schemel Date: Mon, 16 Sep 2024 18:19:06 +0000 (+0200) Subject: changed BD engine to match new GDash code (player birth) X-Git-Tag: 4.4.0.0-test-4~227 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f556a4cd3da8f6a1e4e54d1f9e6dc4a5be466013;p=rocksndiamonds.git changed BD engine to match new GDash code (player birth) --- diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 46130344..1b8be043 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -3796,12 +3796,24 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, break; case O_INBOX: + cave->player_seen_ago = 0; if (cave->hatched && !inbox_toggle) // if it is time of birth store(cave, x, y, O_PRE_PL_1); inbox_toggle = !inbox_toggle; break; + case O_PRE_PL_1: + cave->player_seen_ago = 0; + store(cave, x, y, O_PRE_PL_2); + break; + + case O_PRE_PL_2: + cave->player_seen_ago = 0; + store(cave, x, y, O_PRE_PL_3); + break; + case O_PRE_PL_3: + cave->player_seen_ago = 0; store(cave, x, y, O_PLAYER); break; @@ -3834,8 +3846,6 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, case O_EXPLODE_2: case O_EXPLODE_3: case O_EXPLODE_4: - case O_PRE_PL_1: - case O_PRE_PL_2: case O_PRE_CLOCK_1: case O_PRE_CLOCK_2: case O_PRE_CLOCK_3: