summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-29 21:31:36 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-29 21:31:36 +0000
commit5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45 (patch)
tree028b0dca8498480d96997c08c649ca7547b37874 /src/map/map.c
parent71201030aedb473d67f15c4ab72ba21c60cca30b (diff)
downloadhercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.gz
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.bz2
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.xz
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.zip
* Collection of random insignificant changes.
- Added progress indication on map-server shutdown when objects are removed from maps, as it takes significant amount of time to complete. - Moved ers_free in db_obj_vclear, so that the node pointer is not used for comparison after it has been freed. - Some documentation of shop packets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14639 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index b052cd7bc..f10c92f32 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3412,9 +3412,14 @@ void do_final(void)
ShowStatus("Terminating...\n");
+ // remove all objects on maps
for (i = 0; i < map_num; i++)
+ {
+ ShowStatus("Cleaning up maps [%d/%d]: %s..."CL_CLL"\r", i+1, map_num, map[i].name);
if (map[i].m >= 0)
map_foreachinmap(cleanup_sub, i, BL_ALL);
+ }
+ ShowStatus("Cleaned up %d maps."CL_CLL"\n", map_num);
//Scan any remaining players (between maps?) to kick them out. [Skotlex]
iter = mapit_getallusers();