From f556a4cd3da8f6a1e4e54d1f9e6dc4a5be466013 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 16 Sep 2024 20:19:06 +0200 Subject: [PATCH] changed BD engine to match new GDash code (player birth) --- src/game_bd/bd_caveengine.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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: -- 2.34.1