diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-10 19:41:25 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-10 19:41:25 +0000 |
commit | 85bdc1dc6c13036984310f39428c82968ecffba7 (patch) | |
tree | 88e0e06f9b7bfa6bcd30b75c6e8f5335b26267c1 /src/map/map.c | |
parent | 1a26dbddc283e94bdfb684a71b0d9db471e18b3b (diff) | |
download | hercules-85bdc1dc6c13036984310f39428c82968ecffba7.tar.gz hercules-85bdc1dc6c13036984310f39428c82968ecffba7.tar.bz2 hercules-85bdc1dc6c13036984310f39428c82968ecffba7.tar.xz hercules-85bdc1dc6c13036984310f39428c82968ecffba7.zip |
- 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
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c index ec9105bba..fb1ee84ec 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -172,7 +172,6 @@ int save_settings = 0xFFFF; int charsave_method = 0; //Default 'OLD' Save method (SQL ONLY!) [Sirius] int agit_flag = 0; int night_flag = 0; // 0=day, 1=night [Yor] -int kick_on_disconnect = 1; struct charid2nick { char nick[NAME_LENGTH]; @@ -3383,9 +3382,7 @@ int inter_config_read(char *cfgName) i=sscanf(line,"%[^:]: %[^\r\n]",w1,w2); if(i!=2) continue; - if(strcmpi(w1,"kick_on_disconnect")==0){ - kick_on_disconnect = battle_config_switch(w2); - } else if(strcmpi(w1,"party_share_level")==0){ + if(strcmpi(w1,"party_share_level")==0){ party_share_level = battle_config_switch(w2); } else if(strcmpi(w1,"lowest_gm_level")==0){ lowest_gm_level = atoi(w2); |