diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-19 12:55:29 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-19 12:55:29 +0000 |
commit | 3c89751e48a424ce26bc1c6f78f4bf7fb6242fac (patch) | |
tree | 3c8b08a06bfe053c32d6312092576db372fc757e /src/map/chrif.c | |
parent | 2a2455a8ac012ef30c85c07d0ad5dd39307acae4 (diff) | |
download | hercules-3c89751e48a424ce26bc1c6f78f4bf7fb6242fac.tar.gz hercules-3c89751e48a424ce26bc1c6f78f4bf7fb6242fac.tar.bz2 hercules-3c89751e48a424ce26bc1c6f78f4bf7fb6242fac.tar.xz hercules-3c89751e48a424ce26bc1c6f78f4bf7fb6242fac.zip |
* Cleaned/clarified some #include relationships between headers
* Changed clif_sitting() to use 'bl' instead of 'sd' (for non-player objects)
* Removed way messed-up script function 'unitdeadsit'
* Tagged 'FIXME' lines written by myself
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11040 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 74733b548..9513c7ea7 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -320,7 +320,7 @@ int chrif_changemapserverack(int account_id, int login_id1, int login_id2, int c if (sd == NULL || sd->status.char_id != char_id) return -1; - if (login_id1 == 1) { //FIXME: charserver says '0'! + if (login_id1 == 1) { //FIXME: charserver says '0'! [ultramage] if (battle_config.error_log) ShowError("map server change failed.\n"); clif_authfail_fd(sd->fd, 0); @@ -507,6 +507,7 @@ int auth_db_cleanup(int tid, unsigned int tick, int id, int data) return 0; } + /*========================================== * *------------------------------------------*/ @@ -929,7 +930,8 @@ int chrif_reloadGMdb(void) *------------------------------------------*/ int chrif_recvgmaccounts(int fd) { - ShowInfo("From login-server: receiving information of '"CL_WHITE"%d"CL_RESET"' GM accounts.\n", pc_read_gm_account(fd)); + int nAccounts = pc_read_gm_account(fd); + ShowInfo("From login-server: receiving information of '"CL_WHITE"%d"CL_RESET"' GM accounts.\n", nAccounts); return 0; } @@ -1288,6 +1290,8 @@ int chrif_parse(int fd) if ((int)RFIFOREST(fd) < packet_len) return 0; + //ShowDebug("Received packet 0x%4x (%d bytes) from char-server (connection %d)\n", RFIFOW(fd,0), packet_len, fd); + switch(cmd) { case 0x2af9: chrif_connectack(fd); break; |