From: Holger Schemel Date: Sun, 8 Dec 2024 00:09:47 +0000 (+0100) Subject: fixed (not) pushing already moving elements in BD engine X-Git-Tag: 4.4.0.0-test-5^0 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2d1bd7783419b61b12db5255837b4d2ed03ad50c;p=rocksndiamonds.git fixed (not) pushing already moving elements in BD engine --- diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 568006f7..6ac86de1 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -1350,7 +1350,9 @@ static boolean do_push(GdCave *cave, int x, int y, GdDirection player_move, bool break; } + // only push game element if not already moving if (is_like_space(cave, x, y, twice[player_move]) && + game_bd.game->dir_buffer_to[what_y][what_x] == GD_MV_STILL && gd_rand_int_range(cave->random, 0, 1000000) < prob) { // if decided that he will be able to push,