From 85bdc1dc6c13036984310f39428c82968ecffba7 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 10 Jul 2006 19:41:25 +0000 Subject: - Added login-char packet 0x2737. Sets all characters offline (login-server side). - Cleaned up char server "set all offline" implementation to remove only characters from the map-server from which the packet was invoked. It will also now correctly kick/set-character offline from the map-server if they are connected. - Cleaned up the char-sql reconnect code. It no longer sets everyone to offline. - Removed setting "kick_on_disconnect", servers will no longer kick characters out when there's a disconnection. Instead, it'll use the most logical approach: Set characters into a "lost" state when there's a disconnection, on reconnect, resent the list of online-characters, do a sync, and let the difference be characters to be removed. Also, the map-server won't release character data until it's saved and the ack returns from the char-server to prevent data loss (all this data is resent on reconnect for saving anyway). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7600 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/inter.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/char/inter.c') diff --git a/src/char/inter.c b/src/char/inter.c index 80d9f653a..414250ae6 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -37,7 +37,6 @@ struct accreg { }; unsigned int party_share_level = 10; -int kick_on_disconnect = 1; // 送信パケット長リスト int inter_send_packet_length[] = { @@ -206,8 +205,6 @@ int inter_config_read(const char *cfgName) { strncpy(accreg_txt, w2, sizeof(accreg_txt)); } else if (strcmpi(w1, "guild_storage_txt") == 0) { strncpy(guild_storage_txt, w2, sizeof(guild_storage_txt)); - } else if (strcmpi(w1, "kick_on_disconnect") == 0) { - kick_on_disconnect = atoi(w2); } else if (strcmpi(w1, "party_share_level") == 0) { party_share_level = (unsigned int)atof(w2); } else if (strcmpi(w1, "inter_log_filename") == 0) { -- cgit v1.2.3-60-g2f50