|
@@ -2137,7 +2137,7 @@ int npc_parse_mob2(struct spawn_data* mob, int index)
|
|
|
|
|
|
static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const char* start, const char* buffer, const char* filepath)
|
|
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;
|
|
|
|
|
|
+ int level, num, class_, mode, x,y,xs,ys, temp;
|
|
char mapname[32];
|
|
char mapname[32];
|
|
char mobname[128];
|
|
char mobname[128];
|
|
struct spawn_data mob, *data;
|
|
struct spawn_data mob, *data;
|
|
@@ -2182,9 +2182,10 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c
|
|
return strchr(start,'\n');// skip and continue
|
|
return strchr(start,'\n');// skip and continue
|
|
}
|
|
}
|
|
|
|
|
|
- //Fix for previously wrong interpretation of the delays
|
|
|
|
- mob.delay2 = mob.delay1;
|
|
|
|
- mob.delay1 = 0;
|
|
|
|
|
|
+ //Fixed according to latest kRO update (needs optimization)
|
|
|
|
+ temp = mob.delay1;
|
|
|
|
+ mob.delay1 += mob.delay2;
|
|
|
|
+ mob.delay2 = temp;
|
|
|
|
|
|
mob.num = (unsigned short)num;
|
|
mob.num = (unsigned short)num;
|
|
mob.class_ = (short) class_;
|
|
mob.class_ = (short) class_;
|