Procházet zdrojové kódy

Removed double saving attempts
* Follow up to 3dfdb38.
* Removed an extra save attempt if a player changes jobs and has fame.

aleos89 před 8 roky
rodič
revize
dfccb88785
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      src/map/pc.c

+ 2 - 4
src/map/pc.c

@@ -8544,16 +8544,14 @@ bool pc_jobchange(struct map_session_data *sd,int job, char upper)
 
 	chrif_save(sd, 0);
 	//if you were previously famous, not anymore.
-	if (fame_flag) {
-		chrif_save(sd,0);
+	if (fame_flag)
 		chrif_buildfamelist();
-	} else if (sd->status.fame > 0) {
+	else if (sd->status.fame > 0) {
 		//It may be that now they are famous?
  		switch (sd->class_&MAPID_UPPERMASK) {
 			case MAPID_BLACKSMITH:
 			case MAPID_ALCHEMIST:
 			case MAPID_TAEKWON:
-				chrif_save(sd,0);
 				chrif_buildfamelist();
 			break;
 		}