From 2d1bd7783419b61b12db5255837b4d2ed03ad50c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 8 Dec 2024 01:09:47 +0100 Subject: [PATCH] fixed (not) pushing already moving elements in BD engine --- src/game_bd/bd_caveengine.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.34.1