From e248c3394d7a2a76cfb39e0955ebab648ecc2bf0 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 9 Jan 2016 21:44:27 +0100 Subject: Sanitized various macros Signed-off-by: Haru --- src/map/clif.h | 2 +- src/map/homunculus.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.h b/src/map/clif.h index 7567e507b..250689e90 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -63,7 +63,7 @@ struct view_data; #define clif_disp_onlyself(sd,mes,len) clif->disp_message( &(sd)->bl, (mes), (len), SELF ) #define MAX_ROULETTE_LEVEL 7 /** client-defined value **/ #define MAX_ROULETTE_COLUMNS 9 /** client-defined value **/ -#define RGB2BGR(c) ((c & 0x0000FF) << 16 | (c & 0x00FF00) | (c & 0xFF0000) >> 16) +#define RGB2BGR(c) (((c) & 0x0000FF) << 16 | ((c) & 0x00FF00) | ((c) & 0xFF0000) >> 16) #define COLOR_RED 0xff0000U #define COLOR_GREEN 0x00ff00U diff --git a/src/map/homunculus.h b/src/map/homunculus.h index 1712c98a9..3e3aff414 100644 --- a/src/map/homunculus.h +++ b/src/map/homunculus.h @@ -70,7 +70,7 @@ enum homun_id { hom->dex_value = hom->luk_value = hom->level / 10 - HOMUN_LEVEL_STATWEIGHT_VALUE \ ) #else -#define APPLY_HOMUN_LEVEL_STATWEIGHT() +#define APPLY_HOMUN_LEVEL_STATWEIGHT() 0 #endif struct h_stats { -- cgit v1.2.3-70-g09d2