From 8c64885c1f7a7e978e1d43d52ee15d3f10acfea6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 4 Dec 2024 20:35:16 +0100 Subject: [PATCH] minor code cleanup --- src/game_bd/bd_caveengine.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 0c208693..e64699de 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -3858,23 +3858,20 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, case O_PRE_PL_1: cave->player_seen_ago = 0; - if (!cave->hatched) // no player birth before hatching - break; - store(cave, x, y, O_PRE_PL_2); + if (cave->hatched) // no player birth before hatching + 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; - store(cave, x, y, O_PRE_PL_3); + if (cave->hatched) // no player birth before hatching + 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; - store(cave, x, y, O_PLAYER_START); // newly born player invulnerable for one frame + if (cave->hatched) // no player birth before hatching + store(cave, x, y, O_PLAYER_START); // newly born player invulnerable for one frame break; case O_PRE_DIA_1: -- 2.34.1