- Fixed pc_setrestartvalue not correctly setting your SP when sending to save to the char-server while dead.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12136 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2008-01-23 23:19:47 +00:00
parent f8732d9c1a
commit cb9dc50f84

View File

@ -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;
}