diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 05:59:30 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 05:59:30 +0000 |
commit | 161bbec94917763336596f2e254982b9a61c21e4 (patch) | |
tree | 5656beceb980538639c7c980af158a6e55c3ef30 /src/map/map.c | |
parent | 2932d44bbcdca34ce72df3e475f4fa5856f7b08f (diff) | |
download | hercules-161bbec94917763336596f2e254982b9a61c21e4.tar.gz hercules-161bbec94917763336596f2e254982b9a61c21e4.tar.bz2 hercules-161bbec94917763336596f2e254982b9a61c21e4.tar.xz hercules-161bbec94917763336596f2e254982b9a61c21e4.zip |
Added a fix for map loading
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@592 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 4f16881b0..32d99352b 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1691,11 +1691,13 @@ int map_readallmap(void) { char buf[64]; *p++ = '\0'; sprintf(buf,"data\\%s", p); + for(p=&buf[0];*p!=0;p++) if (*p=='\\') *p = '/'; // * At the time of Unix map[i].alias = strdup(buf); } else map[i].alias = NULL; sprintf(fn,"data\\%s",map[i].name); + for(p=&fn[0];*p!=0;p++) if (*p=='\\') *p = '/'; // * At the time of Unix if(map_readmap(i,fn, p) == -1) { map_delmap(map[i].name); maps_removed++; |