From bb8d97ed1a8c0a01d87d85aaccbe3dbf1ed2adab Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 12 May 2018 11:12:31 +0200 Subject: [PATCH] fixed small bug in preprocessor macro --- src/libgame/system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libgame/system.h b/src/libgame/system.h index 88df586d..6ed27de2 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -476,9 +476,9 @@ GRID_REAL_HEIGHT), \ MAX_GRID_YSIZE) -#define DEFAULT_GRID_XSIZE(n) (n == 0 ? DEFAULT_GRID_XSIZE_0 : \ +#define DEFAULT_GRID_XSIZE(n) ((n) == 0 ? DEFAULT_GRID_XSIZE_0 : \ DEFAULT_GRID_XSIZE_1) -#define DEFAULT_GRID_YSIZE(n) (n == 0 ? DEFAULT_GRID_YSIZE_0 : \ +#define DEFAULT_GRID_YSIZE(n) ((n) == 0 ? DEFAULT_GRID_YSIZE_0 : \ DEFAULT_GRID_YSIZE_1) #define GRID_ACTIVE_NR() (video.screen_width > \ -- 2.34.1