diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-13 05:40:47 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-13 05:40:47 +0000 |
commit | c48c5c352920ff78bb2762edb8cd6956a352ab4a (patch) | |
tree | 00ba34e71f7425b5f422c422c11036e566647ebe /src/map | |
parent | b68ff6303e216eb244f4dc65cdf820556db82284 (diff) | |
download | hercules-c48c5c352920ff78bb2762edb8cd6956a352ab4a.tar.gz hercules-c48c5c352920ff78bb2762edb8cd6956a352ab4a.tar.bz2 hercules-c48c5c352920ff78bb2762edb8cd6956a352ab4a.tar.xz hercules-c48c5c352920ff78bb2762edb8cd6956a352ab4a.zip |
* Moved status_calc_pc back to pc_authok.
modified Changelog-Trunk.txt
modified src/map/pc.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9202 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index dd5ea32c3..e1a3555a0 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -705,6 +705,8 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t sd->state.event_kill_pc = 1; sd->state.event_disconnect = 1; sd->state.event_kill_mob = 1; + + status_calc_pc(sd,1); sd->state.auth = 1; { //Add IP field @@ -816,9 +818,8 @@ int pc_reg_received(struct map_session_data *sd) sd->change_level = pc_readglobalreg(sd,"jobchange_level"); sd->die_counter = pc_readglobalreg(sd,"PC_DIE_COUNTER"); - // The earliest I can get is here to prevent more failures of status_calc_pc - // while making equipment scripts with global_regs possible. [Lance] - status_calc_pc(sd,1); + if (!sd->die_counter && (sd->class_&MAPID_UPPERMASK) == MAPID_SUPER_NOVICE) + status_calc_pc(sd, 0); //Check +10 to all stats bonus. chrif_scdata_request(sd->status.account_id, sd->status.char_id); if (pc_checkskill(sd, TK_MISSION)) { |