projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d59a93
)
fixed bug with macro for laser angle for MM engine
author
Holger Schemel
<info@artsoft.org>
Sat, 22 Apr 2023 15:23:08 +0000
(17:23 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 17 May 2023 06:27:03 +0000
(08:27 +0200)
src/game_mm/mm_main.h
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_main.h
b/src/game_mm/mm_main.h
index 96ff6f28247cc16018cce53c8a4f8388a425e4f3..b9dd47a80befeace95c44257975565f718c0f201 100644
(file)
--- a/
src/game_mm/mm_main.h
+++ b/
src/game_mm/mm_main.h
@@
-715,7
+715,7
@@
extern int num_element_info;
#define IS_22_5_ANGLE(angle) ((angle) % 2)
#define IS_90_ANGLE(angle) (!((angle) % 4))
#define IS_HORIZ_ANGLE(angle) (!((angle) % 8))
-#define IS_VERT_ANGLE(angle) (
(angle) % 8
)
+#define IS_VERT_ANGLE(angle) (
!(((angle) + 4) % 8)
)
// mirror angles
#define ANG_MIRROR_0 0