Bladeren bron

- pc_setoption no longer does view_data changes while disguised (as this breaks things)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11845 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 17 jaren geleden
bovenliggende
commit
132da258d7
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 2 0
      Changelog-Trunk.txt
  2. 3 0
      src/map/pc.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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/11/29
+	* pc_setoption no longer does view_data changes while disguised (as this
+	  breaks things) [Skotlex]
 	* Random cleanup/documentation.
 	* Made common/Makefile get the svn version from the src directory, not src/common.
 	* Added a warning message to the install and uninstall targets.

+ 3 - 0
src/map/pc.c

@@ -5823,6 +5823,9 @@ int pc_setoption(struct map_session_data *sd,int type)
 	else if (!(type&OPTION_SUMMER) && p_type&OPTION_SUMMER)
 		new_look = -1;
 
+	if (sd->disguise)
+		return 0; //Disguises break sprite changes
+
 	if (new_look < 0) { //Restore normal look.
 		status_set_viewdata(&sd->bl, sd->status.class_);
 		new_look = sd->vd.class_;