From 3a4984a967675b1fd10c84730994bf08766c639d Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 17 Dec 2007 13:23:34 +0000 Subject: * Added flag.server to indicate interserver sockets - replaces the previous way (setting 'client_addr' to 0) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11930 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login_sql/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/login_sql') diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 299c06818..5d76c2d93 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -616,7 +616,7 @@ int parse_fromchar(int fd) return 0; } - if( session[fd]->eof ) + if( session[fd]->flag.eof ) { ShowStatus("Char-server '%s' has disconnected.\n", server[id].name); online_db->foreach(online_db, online_db_setoffline, id); //Set all chars from this char server to offline. @@ -1220,7 +1220,7 @@ int parse_login(int fd) uint32 ipl; char ip[16]; - if( session[fd]->eof ) + if( session[fd]->flag.eof ) { do_close(fd); return 0; @@ -1523,7 +1523,7 @@ int parse_login(int fd) WFIFOSET(fd,3); session[fd]->func_parse = parse_fromchar; - session[fd]->client_addr = 0; + session[fd]->flag.server = 1; realloc_fifo(fd, FIFOSIZE_SERVERLINK, FIFOSIZE_SERVERLINK); send_GM_accounts(fd); // send GM account to char-server -- cgit v1.2.3-60-g2f50