From cfd535c7f5b442ae3d96a192a2dbe8650cae99af Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Nov 2014 15:26:00 +0300 Subject: Fix interfaces methods usage. In some places was used direct methods. --- src/map/mob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index e2cf765ee..65c718fa1 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1436,7 +1436,7 @@ bool mob_ai_sub_hard(struct mob_data *md, int64 tick) { if(md->ud.walktimer != INVALID_TIMER && (!can_move || md->ud.walkpath.path_pos <= battle_config.mob_chase_refresh) && (tbl || md->ud.walkpath.path_pos == 0)) return true; //Walk at least "mob_chase_refresh" cells before dropping the target unless target is non-existent - mob_unlocktarget(md, tick); //Unlock target + mob->unlocktarget(md, tick); //Unlock target tbl = NULL; } } @@ -1737,7 +1737,7 @@ int mob_ai_sub_lazy(struct mob_data *md, va_list args) { if( DIFF_TICK(md->next_walktime,tick) < 0 && (status_get_mode(&md->bl)&MD_CANMOVE) && unit->can_move(&md->bl) ) { if( rnd()%1000 < MOB_LAZYMOVEPERC(md) ) - mob_randomwalk(md, tick); + mob->randomwalk(md, tick); } else if( md->ud.walktimer == INVALID_TIMER ) { -- cgit v1.2.3-60-g2f50