projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268b98e
)
fixed bug with wrong check offset for slope elements in MM engine
author
Holger Schemel
<info@artsoft.org>
Fri, 19 May 2023 13:41:51 +0000
(15:41 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 19 May 2023 13:41:51 +0000
(15:41 +0200)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 51ebf314c08f2f31aaa21ba2d72bd8f592b6d881..e35b1321a1bcb595733fe78a9473a46343b675d9 100644
(file)
--- 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) :