From: Holger Schemel Date: Sat, 17 Feb 2024 09:49:15 +0000 (+0100) Subject: white space changes X-Git-Tag: 4.4.0.0-test-1~358 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4867b899697e0ac1d4b57e98ab3af0edbe27323a;p=rocksndiamonds.git white space changes --- diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 5f97940a..bfb7dfbc 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -1709,8 +1709,11 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, /* try to push element; if successful, break */ push = do_push(cave, x, y, player_move, player_fire); if (push) + { remains = O_SPACE; + } else + { switch (what) { case O_BOMB: @@ -1758,9 +1761,10 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, default: /* get element - process others. if cannot get, player_get_element will return the same */ - remains = player_get_element (cave, what, x, y); + remains = player_get_element(cave, what, x, y); break; } + } if (remains != what || remains == O_SPACE) { @@ -1825,7 +1829,9 @@ void gd_cave_iterate(GdCave *cave, GdDirection player_move, boolean player_fire, /* player fire is false... */ if (do_push(cave, x, y, player_move, FALSE)) + { remains = O_SPACE; + } else { switch (what)