Просмотр исходного кода

Fixed char server rejecting i'm alive packet

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@932 54d463be-8e91-2dee-dedb-b68131a5f0ec
celest 20 лет назад
Родитель
Сommit
998440070f
2 измененных файлов с 11 добавлено и 0 удалено
  1. 2 0
      Changelog.txt
  2. 9 0
      src/char/char.c

+ 2 - 0
Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
 01/07
+        * The TXT char server was rejecting login's "i'm alive" packet and disconnecting
+          it... fixed [celest]
         * Stall_time wasn't being read in login_athena at all (not by the login server,
           because the code didn't read it, nor by TXT map server, since its in the SQL
           inter_athena.conf reading)... so moved it to inter_athena.conf, and

+ 9 - 0
src/char/char.c

@@ -1958,7 +1958,16 @@ int parse_tologin(int fd) {
 			RFIFOSKIP(fd,RFIFOW(fd,2));
 			break;
 
+		// login-server alive packet
+		case 0x2718:
+			if (RFIFOREST(fd) < 2)
+				return 0;
+			// do whatever it's supposed to do here
+			RFIFOSKIP(fd,2);
+			break;
+
 		default:
+			printf("parse_tologin: unknown packet %x! \n", RFIFOW(fd,0));
 			session[fd]->eof = 1;
 			return 0;
 		}