From 14380ba0d1e63585c3135ac53418bf1a376c099a Mon Sep 17 00:00:00 2001 From: valaris Date: Sun, 14 Nov 2004 22:31:02 +0000 Subject: * Fixed loading of AFMs when no resnametable is found. [Valaris] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@182 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/map') diff --git a/src/map/map.c b/src/map/map.c index 4c6bcaed0..7ecc3eb2a 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1612,16 +1612,6 @@ int map_readallmap(void) { FILE *afm_file; // 先に全部のャbプの存在を確認 - for(i=0;i"); // [MouseJstr] if (p != NULL) { @@ -1640,13 +1630,13 @@ int map_readallmap(void) { strcpy(alias, map[i].name); strcpy(map[i].name, p + 1); sprintf(fn,"data\\%s",map[i].name); - if(map_readmap(i,fn, alias) == -1) { + if(grfio_size(fn) == -1 || map_readmap(i,fn, alias) == -1) { map_delmap(map[i].name); maps_removed++; } } else { sprintf(fn,"data\\%s",map[i].name); - if(map_readmap(i,fn, NULL) == -1) { + if(grfio_size(fn) == -1 || map_readmap(i,fn, NULL) == -1) { map_delmap(map[i].name); maps_removed++; } @@ -1685,6 +1675,7 @@ int map_addmap(char *mapname) { *------------------------------------------ */ int map_delmap(char *mapname) { + int i; if (strcmpi(mapname, "all") == 0) { -- cgit v1.2.3-70-g09d2