From 6ee436bd2dab3838b87e084bebd0b2531adb0049 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 4 Dec 2024 20:29:44 +0100 Subject: [PATCH] fixed always marking player as seen for player birth elements --- src/game_bd/bd_caveengine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index a18d3b85..0c208693 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -3857,23 +3857,23 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, break; case O_PRE_PL_1: + cave->player_seen_ago = 0; 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: + cave->player_seen_ago = 0; 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: + cave->player_seen_ago = 0; if (!cave->hatched) // no player birth before hatching break; - cave->player_seen_ago = 0; store(cave, x, y, O_PLAYER_START); // newly born player invulnerable for one frame break; -- 2.34.1