From: Holger Schemel Date: Sat, 12 May 2018 09:12:31 +0000 (+0200) Subject: fixed small bug in preprocessor macro X-Git-Tag: 4.1.1.0~157 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bb8d97ed1a8c0a01d87d85aaccbe3dbf1ed2adab fixed small bug in preprocessor macro --- 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 > \