summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorvalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 16:15:39 +0000
committervalaris <valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 16:15:39 +0000
commit19761175cbf8c82c5d1ac6d09d89eae92138cde9 (patch)
tree09e2f44eebcedc6b02c95211edba12997e5f14fe /src/map/map.c
parente7cff182f411b0f42f4fe14522fea7722c8c5a38 (diff)
downloadhercules-19761175cbf8c82c5d1ac6d09d89eae92138cde9.tar.gz
hercules-19761175cbf8c82c5d1ac6d09d89eae92138cde9.tar.bz2
hercules-19761175cbf8c82c5d1ac6d09d89eae92138cde9.tar.xz
hercules-19761175cbf8c82c5d1ac6d09d89eae92138cde9.zip
* Closed AFM files after reading, this fixed the improper char-server session #. [Valaris]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@297 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index b47c7786a..8bf0c74f6 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1480,6 +1480,9 @@ static int map_readafm(int m,char *fn) {
afm_file = fopen(fn, "r");
if (afm_file != NULL) {
+ printf("\rLoading Maps [%d/%d]: %-50s ",m,map_num,fn);
+ fflush(stdout);
+
str=fgets(afm_line, sizeof(afm_line)-1, afm_file);
str=fgets(afm_line, sizeof(afm_line)-1, afm_file);
str=fgets(afm_line, sizeof(afm_line)-1, afm_file);
@@ -1541,7 +1544,11 @@ static int map_readafm(int m,char *fn) {
memset(map[m].block_mob_count,0,size);
strdb_insert(map_db,map[m].name,&map[m]);
+
+ fclose(afm_file);
+
}
+
return 0;
}