Browse Source

Fixed SQL compile error

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1247 54d463be-8e91-2dee-dedb-b68131a5f0ec
celest 20 years ago
parent
commit
7840576d02
2 changed files with 2 additions and 4 deletions
  1. 1 0
      Changelog-SVN.txt
  2. 1 4
      src/char_sql/char.c

+ 1 - 0
Changelog-SVN.txt

@@ -1,6 +1,7 @@
 Date	Added
 Date	Added
 
 
 03/17
 03/17
+        * Fixed compile errors in SQL char.c [celest]
 	* Added ~86 new cards. Fixed new cards bugs, optimized [Lupus] thanks to Indiona,Landarma
 	* Added ~86 new cards. Fixed new cards bugs, optimized [Lupus] thanks to Indiona,Landarma
 	* Removed nullpo warning from trade.c (my prev anti-spoof protection) [Lupus]
 	* Removed nullpo warning from trade.c (my prev anti-spoof protection) [Lupus]
         * Added the new Einbroch/Einbech maps to maps_athena.conf [celest]
         * Added the new Einbroch/Einbech maps to maps_athena.conf [celest]

+ 1 - 4
src/char_sql/char.c

@@ -1767,16 +1767,13 @@ int parse_tologin(int fd) {
 						gm_account[GM_num].level = (int)RFIFOB(fd,6);
 						gm_account[GM_num].level = (int)RFIFOB(fd,6);
 						new_level = 1;
 						new_level = 1;
 						GM_num++;
 						GM_num++;
-						if (GM_num >= 4000) {
+						if (GM_num >= 4000)
 							printf("***WARNING: 4000 GM accounts found. Next GM accounts are not readed.\n");
 							printf("***WARNING: 4000 GM accounts found. Next GM accounts are not readed.\n");
-							char_log("***WARNING: 4000 GM accounts found. Next GM accounts are not readed." RETCODE);
-						}
 					}
 					}
 				}
 				}
 				if (new_level == 1) {
 				if (new_level == 1) {
 					int len;
 					int len;
 					printf("From login-server: receiving a GM account information (%d: level %d).\n", RFIFOL(fd,2), (int)RFIFOB(fd,6));
 					printf("From login-server: receiving a GM account information (%d: level %d).\n", RFIFOL(fd,2), (int)RFIFOB(fd,6));
-					char_log("From login-server: receiving a GM account information (%d: level %d)." RETCODE, RFIFOL(fd,2), (int)RFIFOB(fd,6));
 					//create_online_files(); // not change online file for only 1 player (in next timer, that will be done
 					//create_online_files(); // not change online file for only 1 player (in next timer, that will be done
 					// send gm acccounts level to map-servers
 					// send gm acccounts level to map-servers
 					len = 4;
 					len = 4;