瀏覽代碼

modified src/map/clif.c
modified src/map/pc.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9149 54d463be-8e91-2dee-dedb-b68131a5f0ec

Lance 18 年之前
父節點
當前提交
8a5566dc47
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 2 1
      src/map/clif.c
  2. 2 2
      src/map/pc.c

+ 2 - 1
src/map/clif.c

@@ -8218,7 +8218,8 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
 	if(sd->npc_id) npc_event_dequeue(sd);
 
 	if(sd->state.connect_new) {
-		status_calc_pc(sd,1);
+		// Temperory moved to pc_reg_received until Skot is back.
+		//status_calc_pc(sd,1);
 
 		if (sd->sc.option&OPTION_FALCON)
 			clif_status_load(&sd->bl, SI_FALCON, 1);

+ 2 - 2
src/map/pc.c

@@ -803,10 +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");
-	// 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.
+	// Let's hope putting this here will end all misery.
+	status_calc_pc(sd,1);
 	if (pc_checkskill(sd, TK_MISSION)) {
 		sd->mission_mobid = pc_readglobalreg(sd,"TK_MISSION_ID");
 		sd->mission_count = pc_readglobalreg(sd,"TK_MISSION_COUNT");