diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-23 23:19:47 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-23 23:19:47 +0000 |
commit | 963bf7ffc7805615a3e93f700d056c2c6d8553db (patch) | |
tree | a8ec5c2f001287a6055d6afcbcd1cd6106497a71 /src/map/pc.c | |
parent | 3a1857f650a51598615e83fe9ac4cf0791972a16 (diff) | |
download | hercules-963bf7ffc7805615a3e93f700d056c2c6d8553db.tar.gz hercules-963bf7ffc7805615a3e93f700d056c2c6d8553db.tar.bz2 hercules-963bf7ffc7805615a3e93f700d056c2c6d8553db.tar.xz hercules-963bf7ffc7805615a3e93f700d056c2c6d8553db.zip |
- Fixed pc_setrestartvalue not correctly setting your SP when sending to save to the char-server while dead.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12136 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 20539d5cc..19781f1e5 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -310,10 +310,9 @@ int pc_setrestartvalue(struct map_session_data *sd,int type) sc_start(&sd->bl,SkillStatusChangeTable(MO_STEELBODY),100,1,skill_get_time(MO_STEELBODY,1)); } else status_heal(&sd->bl, b_status->hp, b_status->sp>status->sp?b_status->sp-status->sp:0, 1); - } else { //Just for saving on the char-server + } else { //Just for saving on the char-server (with values as if respawned) sd->status.hp = b_status->hp; - if ((unsigned int)sd->status.sp < b_status->sp) - sd->status.sp = b_status->sp; + sd->status.sp = (status->sp < b_status->sp)?b_status->sp:status->sp; } return 0; } |