diff options
author | Haru <haru@dotalux.com> | 2016-01-09 21:44:27 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-09 21:44:27 +0100 |
commit | e248c3394d7a2a76cfb39e0955ebab648ecc2bf0 (patch) | |
tree | 31d8b0b7de923cff4a49131b82a6ff4de2fd2769 /src/map | |
parent | 10f9f4282097f177d6ee0b26572dcf4308e6d6fb (diff) | |
download | hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.gz hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.bz2 hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.tar.xz hercules-e248c3394d7a2a76cfb39e0955ebab648ecc2bf0.zip |
Sanitized various macros
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.h | 2 | ||||
-rw-r--r-- | src/map/homunculus.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 { |