summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-28 01:00:31 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-28 01:00:31 +0000
commitbbdf862a9987fbd5f752a324c437adcf7035ba38 (patch)
treed350d74cd142c63cd6f53dfebf26a9bd63204868 /src/map
parentd9511b8a56ac8c82dcf8ab1bfa7eaa8103edda51 (diff)
downloadhercules-bbdf862a9987fbd5f752a324c437adcf7035ba38.tar.gz
hercules-bbdf862a9987fbd5f752a324c437adcf7035ba38.tar.bz2
hercules-bbdf862a9987fbd5f752a324c437adcf7035ba38.tar.xz
hercules-bbdf862a9987fbd5f752a324c437adcf7035ba38.zip
- Map server will now resent the whole list of online characters to char-server on reconnect when the kick_on_disconnect setting is active.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7365 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/chrif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 34279bb52..f6f20b2cc 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -412,6 +412,10 @@ int chrif_sendmapack(int fd)
ShowStatus("Map sending complete. Map Server is now online.\n");
chrif_state = 2;
+ //If there are players online, send them to the char-server. [Skotlex]
+ if (!kick_on_disconnect)
+ send_users_tochar(-1, gettick(), 0, 0);
+
//Re-save any storages that were modified in the disconnection time. [Skotlex]
do_reconnect_storage();