summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-06 05:01:41 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-06 05:01:41 +0000
commit4ecf64221cb558786e4581f4ac7ffa733fa3e4d5 (patch)
tree906e1be9da76b8c9272cfab7ad6bb996ae17aacc /src/map/pc.c
parenta067954fa2a33d8c962022f48adb7c3bfbe828e7 (diff)
downloadhercules-4ecf64221cb558786e4581f4ac7ffa733fa3e4d5.tar.gz
hercules-4ecf64221cb558786e4581f4ac7ffa733fa3e4d5.tar.bz2
hercules-4ecf64221cb558786e4581f4ac7ffa733fa3e4d5.tar.xz
hercules-4ecf64221cb558786e4581f4ac7ffa733fa3e4d5.zip
* Reverted changes, moved status_calc_pc(sd,1) back to pc_authok since it causes problems.
modified Changelog-Trunk.txt modified src/map/pc.c modified src/map/script.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9150 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 875277dad..7aeaf2232 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -705,6 +705,9 @@ 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;
+
+ // Reverted, since it causes tons of problems putting elsewhere.
+ status_calc_pc(sd,1);
sd->state.auth = 1; //Do not auth him until the initial stats have been placed.
{ //Add IP field
@@ -803,10 +806,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");
- //if (!sd->die_counter && (sd->class_&MAPID_UPPERMASK) == MAPID_SUPER_NOVICE)
- // status_calc_pc(sd, 0); //Check +10 to all stats bonus.
- // Let's hope putting this here will end all misery.
- 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.
if (pc_checkskill(sd, TK_MISSION)) {
sd->mission_mobid = pc_readglobalreg(sd,"TK_MISSION_ID");
sd->mission_count = pc_readglobalreg(sd,"TK_MISSION_COUNT");