diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 07:33:39 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 07:33:39 +0000 |
commit | 8ea9f3079b7f85ccbd5831870d6d38ef88adfd07 (patch) | |
tree | 1e6312ca2dcc8003051f693fc361f1ca1f05e3a7 /src/map/npc.c | |
parent | 5ccb3f48c51beb25cf12898693c06af518de89f1 (diff) | |
download | hercules-8ea9f3079b7f85ccbd5831870d6d38ef88adfd07.tar.gz hercules-8ea9f3079b7f85ccbd5831870d6d38ef88adfd07.tar.bz2 hercules-8ea9f3079b7f85ccbd5831870d6d38ef88adfd07.tar.xz hercules-8ea9f3079b7f85ccbd5831870d6d38ef88adfd07.zip |
Removed the undocumented custom level feature from monster spawn lines (bugreport:3076).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13772 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index affa5838a..cab526151 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2478,9 +2478,8 @@ void npc_parse_mob2(struct spawn_data* mob) static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const char* start, const char* buffer, const char* filepath) { - int level, num, class_, mode, x,y,xs,ys, i,j; + int num, class_, mode, x,y,xs,ys, i,j; char mapname[32]; - char mobname[128]; struct spawn_data mob, *data; struct mob_db* db; @@ -2564,10 +2563,6 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c mob.delay2 = mob.delay2/100*battle_config.mob_spawn_delay; } - // parse MOB_NAME,[MOB LEVEL] - if (sscanf(w3, "%127[^,],%d", mobname, &level) > 1) - mob.level = level; - if(mob.delay1>0xfffffff || mob.delay2>0xfffffff) { ShowError("npc_parse_mob: wrong monsters spawn delays : %s %s (file '%s', line '%d').\n", w3, w4, filepath, strline(buffer,start-buffer)); return strchr(start,'\n');// skip and continue @@ -2579,7 +2574,7 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c else if (battle_config.override_mob_names==2) strcpy(mob.name,"--ja--"); else - strncpy(mob.name, mobname, NAME_LENGTH-1); + safestrncpy(mob.name, w3, sizeof(mob.name)); //Verify dataset. if( !mob_parse_dataset(&mob) ) |