Procházet zdrojové kódy

* Followup to r12579 (all other players appeared as female on sql branch).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12583 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS před 17 roky
rodič
revize
dcf71ce50b
3 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 1 0
      Changelog-Trunk.txt
  2. 2 0
      src/char/char.c
  3. 2 0
      src/char_sql/char.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ 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.
 
 2008/04/13
+	* Followup to r12579 (all other players appeared as female on sql branch). [FlavioJS]
 	* Some major updates to the quest system, beginning to move it
 	  over to the inter server instead of char server. (r12581) [Kevin]
 	* Added an include in clif.h to avoid a complaint of gcc [Toms]

+ 2 - 0
src/char/char.c

@@ -3156,6 +3156,8 @@ int parse_frommap(int fd)
 				node->sex == sex &&
 				node->ip == ip )
 			{// auth ok
+				cd->sex = sex;
+
 				WFIFOHEAD(fd,20 + sizeof(struct mmo_charstatus));
 				WFIFOW(fd,0) = 0x2afd;
 				WFIFOW(fd,2) = 20 + sizeof(struct mmo_charstatus);

+ 2 - 0
src/char_sql/char.c

@@ -2833,6 +2833,8 @@ int parse_frommap(int fd)
 				node->sex == sex &&
 				node->ip == ip )
 			{// auth ok
+				cd->sex = sex;
+
 				WFIFOHEAD(fd,20 + sizeof(struct mmo_charstatus));
 				WFIFOW(fd,0) = 0x2afd;
 				WFIFOW(fd,2) = 20 + sizeof(struct mmo_charstatus);