From: Holger Schemel Date: Fri, 19 May 2023 13:43:17 +0000 (+0200) Subject: fixed bug with wrong laser position for slope element check in MM engine X-Git-Tag: 4.3.6.0~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=849ff903bcc8c5193b7a6298747efdac3eff171f;p=rocksndiamonds.git fixed bug with wrong laser position for slope element check in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index e35b1321..58ae03db 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1956,8 +1956,8 @@ static boolean HitElement(int element, int hit_mask) { int elx, ely; - elx = getLevelFromLaserX(LX); - ely = getLevelFromLaserY(LY); + elx = getLevelFromLaserX(LX + XS); + ely = getLevelFromLaserY(LY + YS); if (IN_LEV_FIELD(elx, ely)) {