Explorar o código

- Now when saving a character, only the cart/peco/falcon 'option' states are saved, the rest should be handled by the status change load/save functions.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10188 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=18) %!d(string=hai) anos
pai
achega
ced0e947db
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 4 0
      Changelog-Trunk.txt
  2. 3 1
      src/map/pc.c

+ 4 - 0
Changelog-Trunk.txt

@@ -4,6 +4,10 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/04/09
+	* Now when saving a character, only the cart/peco/falcon 'option' states
+	  are saved, the rest should be handled by the status change load/save
+	  functions. This saves 'permanent' cloaking/hiding and other such oddities
+	  if the server is unable to save your status changes on logout.
 	* Updated some Guild WoE rules to behave as explained here:
 	  http://www.eathena.ws/board/index.php?showtopic=146581 [Skotlex]
 2007/04/08

+ 3 - 1
src/map/pc.c

@@ -318,7 +318,9 @@ int pc_makesavestatus(struct map_session_data *sd)
 	if(!battle_config.save_clothcolor)
 		sd->status.clothes_color=0;
 
-	sd->status.option = sd->sc.option; //Since the option saved is in 
+  	//Only copy the Cart/Peco/Falcon options, the rest are handled via 
+	//status change load/saving. [Skotlex]
+	sd->status.option = sd->sc.option&(OPTION_CART|OPTION_FALCON|OPTION_RIDING);
 		
 	if (sd->sc.count && sd->sc.data[SC_JAILED].timer != -1)
 	{	//When Jailed, do not move last point.