summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 03:17:19 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 03:17:19 +0000
commitfeb238739734f3679c872150a5cc8a641543d081 (patch)
tree792f08c86aafb07590d8c5eb9f925efa231a5f34 /src/map/pc.c
parent02970d7f1eb4e67ad850d140ff9acebc63d31036 (diff)
downloadhercules-feb238739734f3679c872150a5cc8a641543d081.tar.gz
hercules-feb238739734f3679c872150a5cc8a641543d081.tar.bz2
hercules-feb238739734f3679c872150a5cc8a641543d081.tar.xz
hercules-feb238739734f3679c872150a5cc8a641543d081.zip
- Added range checking to mob skill loading of permillage and delay.
- Fixed pc_gainexp not working for next level exp requirements above INT_MAX. - Fixed the display of @showexp not working right for exp values above INT_MAX. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5242 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 2d55bb46c..3b226c122 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4593,7 +4593,7 @@ int pc_follow(struct map_session_data *sd,int target_id)
int pc_checkbaselevelup(struct map_session_data *sd)
{
- int next = pc_nextbaseexp(sd);
+ unsigned int next = pc_nextbaseexp(sd);
nullpo_retr(0, sd);
@@ -4651,7 +4651,7 @@ int pc_checkbaselevelup(struct map_session_data *sd)
int pc_checkjoblevelup(struct map_session_data *sd)
{
- int next = pc_nextjobexp(sd);
+ unsigned int next = pc_nextjobexp(sd);
nullpo_retr(0, sd);
@@ -4763,7 +4763,7 @@ int pc_gainexp(struct map_session_data *sd,unsigned int base_exp,unsigned int jo
if(sd->state.showexp){
sprintf(output,
- "Experience Gained Base:%d (%.2f%%) Job:%d (%.2f%%)",base_exp,nextbp*(float)100,job_exp,nextjp*(float)100);
+ "Experience Gained Base:%u (%.2f%%) Job:%u (%.2f%%)",base_exp,nextbp*(float)100,job_exp,nextjp*(float)100);
clif_disp_onlyself(sd,output,strlen(output));
}