From 2be730b2cd3503eac660ae456e569cd3aa8c778a Mon Sep 17 00:00:00 2001 From: amber Date: Tue, 28 Dec 2004 03:13:08 +0000 Subject: update git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@829 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 1 + src/map/map.c | 51 +++++++++++++++++++++++++-------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 713ff1501..91bcd25b8 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 12/27 + * Modified the map progress bar to reduce updates (SVN 829) [MouseJstr] * Updated map cache system from jA 1087 - change read_map_from_bitmap to 2 to enable zlib compression [celest] * don't delete alive_timers of -1 (SVN 823) [MouseJstr] diff --git a/src/map/map.c b/src/map/map.c index f36ef0ccf..fc2049724 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1882,7 +1882,7 @@ static int map_readafm(int m,char *fn) { /*========================================== * マップ1枚読み込み * ===================================================*/ -static int map_readmap(int m,char *fn, char *alias, int *map_cache) { +static int map_readmap(int m,char *fn, char *alias, int *map_cache, int maxmap) { unsigned char *gat=""; size_t size; @@ -1892,14 +1892,28 @@ static int map_readmap(int m,char *fn, char *alias, int *map_cache) { //printf("\rLoading Maps [%d/%d]: %-50s ",m,map_num,fn); if (map_num) { //avoid map-server crashing if there are 0 maps - printf("\r"); - ShowStatus("Progress: "); - i=m*20/420; - printf("["); - for (e=0;e