diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-09-28 20:08:59 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2008-09-28 20:08:59 +0000 |
commit | f607d15aca6a0eefd350b0643e42180625310967 (patch) | |
tree | a3867fe28c4d82a8b12ab49b768c069dcd429abd | |
parent | 28ad0a20d0de1cd3b4f756fa5fd9207639bc8cfd (diff) | |
download | tmwa-f607d15aca6a0eefd350b0643e42180625310967.tar.gz tmwa-f607d15aca6a0eefd350b0643e42180625310967.tar.bz2 tmwa-f607d15aca6a0eefd350b0643e42180625310967.tar.xz tmwa-f607d15aca6a0eefd350b0643e42180625310967.zip |
Commit Mantis 440: eAthena patch to strip whitespace from item and monster DBs
-rw-r--r-- | src/map/itemdb.c | 1 | ||||
-rw-r--r-- | src/map/mob.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index a225cff..f68f416 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -329,6 +329,7 @@ static int itemdb_readdb(void) continue; memset(str,0,sizeof(str)); for(j=0,np=p=line;j<17 && p;j++){ + while (*p == '\t' || *p == ' ') p++; str[j]=p; p=strchr(p,','); if(p){ *p++=0; np=p; } diff --git a/src/map/mob.c b/src/map/mob.c index 969eed2..1304a41 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3644,6 +3644,7 @@ static int mob_readdb(void) continue; for(i=0,p=line;i<55;i++){ + while (*p == '\t' || *p == ' ') p++; if((np=strchr(p,','))!=NULL){ str[i]=p; *np=0; |