summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 14:38:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 14:38:54 +0000
commit0ce813749e1a8d9e72043e0e35660544cc0eb72e (patch)
treeb4aaacef86e99d73e5de1ff441a9f0d40b1e6519 /src/char
parent6a393f19e5e814126ca51a9e94b89a03066250b4 (diff)
downloadhercules-0ce813749e1a8d9e72043e0e35660544cc0eb72e.tar.gz
hercules-0ce813749e1a8d9e72043e0e35660544cc0eb72e.tar.bz2
hercules-0ce813749e1a8d9e72043e0e35660544cc0eb72e.tar.xz
hercules-0ce813749e1a8d9e72043e0e35660544cc0eb72e.zip
- Now, when the login-char connection is cut, the char-server won't set everyone offline on reconnect, instead it will send the list of online accounts to the login server.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7563 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 774554037..1556c10a3 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1826,6 +1826,8 @@ static int char_delete(struct mmo_charstatus *cs) {
return 0;
}
+int send_accounts_tologin(int tid, unsigned int tick, int id, int data);
+
int parse_tologin(int fd) {
int i;
struct char_session_data *sd;
@@ -1862,8 +1864,15 @@ int parse_tologin(int fd) {
exit(1);
} else {
ShowStatus("Connected to login-server (connection #%d).\n", fd);
- if (kick_on_disconnect)
- set_all_offline();
+// Don't set them offline as there's no packet to tell the map server
+// to kick everyone out. Also, a disconnection from the login server is
+// NOT something serious to the data integrity as a char-map disconnect
+// is. [Skotlex]
+// if (kick_on_disconnect)
+// set_all_offline();
+// However, on reconnect, DO send our connected accounts to login.
+ send_accounts_tologin(-1, gettick(), 0, 0);
+
// if no map-server already connected, display a message...
for(i = 0; i < MAX_MAP_SERVERS; i++)
if (server_fd[i] >= 0 && server[i].map[0]) // if map-server online and at least 1 map