diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 3c3967762..a8765995e 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1472,12 +1472,8 @@ int npc_stop_walking(struct npc_data *nd,int type) }
if(type&0x01)
clif_fixnpcpos(nd);
- if(type&0x02) {
- int delay=status_get_dmotion(&nd->bl);
- unsigned int tick = gettick();
- if(nd->canmove_tick < tick)
- nd->canmove_tick = tick + delay;
- }
+ if(type&0x02)
+ battle_set_walkdelay(&nd->bl, gettick(), status_get_dmotion(&nd->bl), 1);
return 0;
}
|