Pārlūkot izejas kodu

* Temperory fixed stability issue caused by initial status_calc_pc being placed AFTER another status_calc_pc.

modified   Changelog-Trunk.txt
modified   src/map/pc.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9148 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 18 gadi atpakaļ
vecāks
revīzija
4d10630d37
2 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 3 0
      Changelog-Trunk.txt
  2. 4 2
      src/map/pc.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2006/11/06
+	* Temperory fixed stability issue caused by initial status_calc_pc
+	  being placed AFTER another status_calc_pc. [Lance]
 2006/11/05
 	* Updated sql files [Toms]
 	* Updated perl files acording to rev 9135 [Toms]

+ 4 - 2
src/map/pc.c

@@ -803,8 +803,10 @@ 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.
+	// TODO: You're executing this before your initial loading in clif_parse_LoadEndAck
+	// Removed for stability. [Lance]
+	//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");