Sfoglia il codice sorgente

- Added deleting of saved Status changes on character delete for the Char-TXT server.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8759 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 anni fa
parent
commit
961cd2330f
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 2 0
      Changelog-Trunk.txt
  2. 3 0
      src/char/char.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.
 
 2006/09/14
+	* Added deleting of saved Status changes on character delete for the
+	  Char-TXT server. [Skotlex]
 	* Fixed the can-act delay never being checked when requesting to use
 	  Homunculus Skills. [Skotlex]
 	* Fixed warmth skills draining SP of the target, not the caster. [Skotlex]

+ 3 - 0
src/char/char.c

@@ -1899,6 +1899,9 @@ static int char_delete(struct mmo_charstatus *cs) {
 		// —£�¥
 		char_divorce(cs);
 	}
+#ifdef ENABLE_SC_SAVING
+	status_delete_scdata(cs->account_id, cs->char_id);
+#endif
 	return 0;
 }