Ver Fonte

Updated the TXT login server's account id checker (it was still saying the minimum is 700000 instead of 2000000)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9788 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage há 18 anos atrás
pai
commit
175d003c6f
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 0
      Changelog-Trunk.txt
  2. 2 2
      src/login/login.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.
 
 2007/02/05
+	* Updated the TXT login server's account id checker
+	  (it was still saying the minimum is 700000 instead of 2000000)
 	* Changed the 'getpartyleader' script command so that it returns a map
 	  name instead of the useless mapindex number. Also fixed it so that it
 	  doesn't throw a 'args of aFree is not valid pointer' error.

+ 2 - 2
src/login/login.c

@@ -1382,8 +1382,8 @@ int mmo_auth(struct mmo_account* account, int fd) {
 	memcpy(account->lastlogin, auth_dat[i].lastlogin, 24);
 	memcpy(auth_dat[i].lastlogin, tmpstr, 24);
 	account->sex = auth_dat[i].sex;
-	if (account->sex != 2 && account->account_id < 700000)
-		ShowWarning("Account %s has account id %d! Account IDs must be over 700000 to work properly!\n", account->userid, account->account_id);
+	if (account->sex != 2 && account->account_id < START_ACCOUNT_NUM)
+		ShowWarning("Account %s has account id %d! Account IDs must be over %d to work properly!\n", account->userid, account->account_id, START_ACCOUNT_NUM);
 
 	strncpy(auth_dat[i].last_ip, ip, 16);
 	auth_dat[i].logincount++;