diff options
author | Haru <haru@dotalux.com> | 2016-07-14 03:28:53 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-14 03:28:53 +0200 |
commit | 7bcb379c83327331bda05a23000dc0a6bbbefa48 (patch) | |
tree | 5c0911e81606e0c41008a7f8e0b990114ae24051 /src/map/battle.c | |
parent | 968e3cddbd3394607ae34f56ba8ee12d78bad1a5 (diff) | |
download | hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.gz hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.bz2 hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.xz hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.zip |
Changed mmo_charstatus::base_level and mmo_charstatus::job_level to int
Fixes several -Wsign-compare issues
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 879776871..0eda1f3e8 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6774,9 +6774,9 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f if ( (s_sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (t_sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || - (int)s_sd->status.base_level < battle_config.pk_min_level || - (int)t_sd->status.base_level < battle_config.pk_min_level || - (battle_config.pk_level_range && abs((int)s_sd->status.base_level - (int)t_sd->status.base_level) > battle_config.pk_level_range) + s_sd->status.base_level < battle_config.pk_min_level || + t_sd->status.base_level < battle_config.pk_min_level || + (battle_config.pk_level_range && abs(s_sd->status.base_level - t_sd->status.base_level) > battle_config.pk_level_range) ) state &= ~BCT_ENEMY; } |