From f607d15aca6a0eefd350b0643e42180625310967 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 28 Sep 2008 20:08:59 +0000 Subject: Commit Mantis 440: eAthena patch to strip whitespace from item and monster DBs --- src/map/itemdb.c | 1 + src/map/mob.c | 1 + 2 files changed, 2 insertions(+) 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; -- cgit v1.2.3-70-g09d2