summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 19:44:00 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 19:44:00 +0000
commitd73cbd4c778f408ce3e06c57ad6418b99e2b9c51 (patch)
tree7e0eccf71218102b49424879e1ff6d8bf5ae05af /src/map/map.c
parent23180e04bdb7a2dfb95da6fb6ab0026fb4ea8b0d (diff)
downloadhercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.gz
hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.bz2
hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.xz
hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.zip
updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@793 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 46705dc8d..4e7223d11 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2489,7 +2489,7 @@ static int cleanup_sub(struct block_list *bl, va_list ap) {
switch(bl->type) {
case BL_PC:
- map_delblock(bl); // There is something better...
+ map_quit((struct map_session_data *) bl);
break;
case BL_NPC:
npc_delete((struct npc_data *)bl);
@@ -2522,9 +2522,13 @@ void do_final(void) {
if(map[map_id].m)
map_foreachinarea(cleanup_sub, map_id, 0, 0, map[map_id].xs, map[map_id].ys, 0, 0);
}
+
#ifndef TXT_ONLY
chrif_char_reset_offline();
#endif
+
+ chrif_flush_fifo();
+
for (i = 0; i < fd_max; i++)
delete_session(i);