diff options
author | Haru <haru@dotalux.com> | 2016-07-14 02:29:05 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-14 02:32:46 +0200 |
commit | a7c3d70ae42370b570bf25972089f2326ace6396 (patch) | |
tree | afdd60ab8a097d30071239a685ae148aed15b693 /src/map/pc.h | |
parent | 5d1a002d3b10e7e833790d85aad727a30fd5703c (diff) | |
download | hercules-a7c3d70ae42370b570bf25972089f2326ace6396.tar.gz hercules-a7c3d70ae42370b570bf25972089f2326ace6396.tar.bz2 hercules-a7c3d70ae42370b570bf25972089f2326ace6396.tar.xz hercules-a7c3d70ae42370b570bf25972089f2326ace6396.zip |
Changed pc->maxbaselv() and pc->maxjoblv() to return signed int and take const sd
Removes some FIXME (and continues a chain reaction)
Fixes some of the many -Wsign-compare warnings
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 8b1c9a34d..f3b2c1ff6 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -909,8 +909,8 @@ END_ZEROED_BLOCK; /* End */ int (*follow) (struct map_session_data *sd, int target_id); // [MouseJstr] int (*stop_following) (struct map_session_data *sd); - unsigned int (*maxbaselv) (struct map_session_data *sd); - unsigned int (*maxjoblv) (struct map_session_data *sd); + int (*maxbaselv) (const struct map_session_data *sd); + int (*maxjoblv) (const struct map_session_data *sd); int (*checkbaselevelup) (struct map_session_data *sd); int (*checkjoblevelup) (struct map_session_data *sd); bool (*gainexp) (struct map_session_data *sd, struct block_list *src, unsigned int base_exp, unsigned int job_exp, bool is_quest); |