From: Holger Schemel Date: Fri, 19 May 2023 13:41:51 +0000 (+0200) Subject: fixed bug with wrong check offset for slope elements in MM engine X-Git-Tag: 4.3.6.0~5 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=b445fff51ca97816a42d42ff8b6c4da677396d00 fixed bug with wrong check offset for slope elements in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 51ebf314..e35b1321 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1970,8 +1970,8 @@ static boolean HitElement(int element, int hit_mask) int nr = element - EL_DF_SLOPE_START; int dx = (nr == 0 ? (XS > 0 ? TILEX - 1 : -1) : - nr == 1 ? (XS > 0 ? TILEX : 1) : - nr == 2 ? (XS > 0 ? TILEX : 1) : + nr == 1 ? (XS > 0 ? TILEX : 0) : + nr == 2 ? (XS > 0 ? TILEX : 0) : nr == 3 ? (XS > 0 ? TILEX - 1 : -1) : 0); int dy = (nr == 0 ? (YS > 0 ? TILEY - 1 : -1) : nr == 1 ? (YS > 0 ? TILEY - 1 : -1) :