From: Holger Schemel Date: Wed, 17 May 2023 10:45:40 +0000 (+0200) Subject: fixed bug when checking if end of slope is blocked by other element X-Git-Tag: 4.3.6.0~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=685cf50a110c3294f71dba9004812f53d0623692;p=rocksndiamonds.git fixed bug when checking if end of slope is blocked by other element --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 3c18bcc5..5c5619d0 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1981,7 +1981,7 @@ static boolean HitElement(int element, int hit_mask) { int pos = getMaskFromElement(element_side); - if (mm_masks[pos][dx / 2][dx / 2] == 'X') + if (mm_masks[pos][dx / 2][dy / 2] == 'X') laser.overloaded = TRUE; } }