浏览代码

- Fixed check_connect_login_server check in char-sql server. Fixes char-server not reconnecting to the login server.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7605 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 年之前
父节点
当前提交
f88913a9f0
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/char_sql/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/07/10
+	* Fixed check_connect_login_server check in char-sql server. Fixes
+	  char-server not reconnecting to the login server. [Skotlex]
 	* Login-sql server will no longer change an account's state to "7" when
 	  banning a player. This should fix being able to use @ban to clear out a
 	  @blocked player. Players will now be identified as banned only through the

+ 1 - 1
src/char_sql/char.c

@@ -3768,7 +3768,7 @@ int send_accounts_tologin(int tid, unsigned int tick, int id, int data) {
 }
 
 int check_connect_login_server(int tid, unsigned int tick, int id, int data) {
-	if (login_fd > 0 || session[login_fd] != NULL) 
+	if (login_fd > 0 && session[login_fd] != NULL) 
 		return 0;
 
 	ShowInfo("Attempt to connect to login-server...\n");