Added a fix for map loading
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@592 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
e7d2a6060b
commit
861b912fa9
@ -1,9 +1,11 @@
|
|||||||
Date Added
|
Date Added
|
||||||
12/17
|
12/17
|
||||||
|
* Added a fix for map loading, thanks to 'Guest' [celest]
|
||||||
* Fixed skill #301 causing crashes [MouseJstr]
|
* Fixed skill #301 causing crashes [MouseJstr]
|
||||||
* Fixed documentation error on gm_skills_unconditionl [MouseJstr]
|
* Fixed documentation error on gm_skills_unconditionl [MouseJstr]
|
||||||
* added @grind test command.. only for testing [MouseJstr]
|
* added @grind test command.. only for testing [MouseJstr]
|
||||||
* Added clearweather to the atcommand configuration file. [nsstrunks]
|
* Added clearweather to the atcommand configuration file. [nsstrunks]
|
||||||
|
|
||||||
12/16
|
12/16
|
||||||
* Added a fix for AFM loading, thanks to Pete [celest]
|
* Added a fix for AFM loading, thanks to Pete [celest]
|
||||||
* Updated maximum levels for supernovice to 99 [celest]
|
* Updated maximum levels for supernovice to 99 [celest]
|
||||||
|
@ -1691,11 +1691,13 @@ int map_readallmap(void) {
|
|||||||
char buf[64];
|
char buf[64];
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
sprintf(buf,"data\\%s", p);
|
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);
|
map[i].alias = strdup(buf);
|
||||||
} else
|
} else
|
||||||
map[i].alias = NULL;
|
map[i].alias = NULL;
|
||||||
|
|
||||||
sprintf(fn,"data\\%s",map[i].name);
|
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) {
|
if(map_readmap(i,fn, p) == -1) {
|
||||||
map_delmap(map[i].name);
|
map_delmap(map[i].name);
|
||||||
maps_removed++;
|
maps_removed++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user