From: Holger Schemel Date: Sat, 22 Apr 2023 15:23:08 +0000 (+0200) Subject: fixed bug with macro for laser angle for MM engine X-Git-Tag: 4.3.6.0~18 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=96c47c30116d9306216622ae7f5e8f4583cc3dbc;p=rocksndiamonds.git fixed bug with macro for laser angle for MM engine --- diff --git a/src/game_mm/mm_main.h b/src/game_mm/mm_main.h index 96ff6f28..b9dd47a8 100644 --- 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