Browse Source

* Fixed 'Char creation denied' message not being sent properly.
- Number 2 didn't exist in old clients so it used the default message, now it exists so the wrong message is displayed.
- Changed 2 to 0xFF to get the default message.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13356 54d463be-8e91-2dee-dedb-b68131a5f0ec

FlavioJS 16 years ago
parent
commit
d474fff85a
3 changed files with 7 additions and 2 deletions
  1. 5 0
      Changelog-Trunk.txt
  2. 1 1
      src/char/char.c
  3. 1 1
      src/char_sql/char.c

+ 5 - 0
Changelog-Trunk.txt

@@ -3,6 +3,11 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 
+2008/11/06
+	* Fixed 'Char creation denied' message not being sent properly. [FlavioJS]
+	- Number 2 didn't exist in old clients so it used the default message,
+	  now it exists so the wrong message is displayed.
+	- Changed 2 to 0xFF to get the default message.
 2008/11/05
 2008/11/05
 	* Fixed issue preventing you from changing to the original cart when using Change Cart. (bugreport:2383) [Sara]
 	* Fixed issue preventing you from changing to the original cart when using Change Cart. (bugreport:2383) [Sara]
 2008/10/29
 2008/10/29

+ 1 - 1
src/char/char.c

@@ -3439,7 +3439,7 @@ int parse_char(int fd)
 				WFIFOW(fd,0) = 0x6e;
 				WFIFOW(fd,0) = 0x6e;
 				switch (i) {
 				switch (i) {
 				case -1: WFIFOB(fd,2) = 0x00; break;
 				case -1: WFIFOB(fd,2) = 0x00; break;
-				case -2: WFIFOB(fd,2) = 0x02; break;
+				case -2: WFIFOB(fd,2) = 0xFF; break;
 				case -3: WFIFOB(fd,2) = 0x01; break;
 				case -3: WFIFOB(fd,2) = 0x01; break;
 				}
 				}
 				WFIFOSET(fd,3);
 				WFIFOSET(fd,3);

+ 1 - 1
src/char_sql/char.c

@@ -3107,7 +3107,7 @@ int parse_char(int fd)
 				WFIFOW(fd,0) = 0x6e;
 				WFIFOW(fd,0) = 0x6e;
 				switch (i) {
 				switch (i) {
 				case -1: WFIFOB(fd,2) = 0x00; break;
 				case -1: WFIFOB(fd,2) = 0x00; break;
-				case -2: WFIFOB(fd,2) = 0x02; break;
+				case -2: WFIFOB(fd,2) = 0xFF; break;
 				case -3: WFIFOB(fd,2) = 0x01; break;
 				case -3: WFIFOB(fd,2) = 0x01; break;
 				}
 				}
 				WFIFOSET(fd,3);
 				WFIFOSET(fd,3);