summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-09 15:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 22:44:01 +0300
commitcfd535c7f5b442ae3d96a192a2dbe8650cae99af (patch)
tree158feeb6ecbfcffdc766ec8ac1b2917383c744d3 /src/map/mob.c
parent3742a813233edca6a59cc027209b8cd6bfd6b70b (diff)
downloadhercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.gz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.bz2
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.xz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.zip
Fix interfaces methods usage.
In some places was used direct methods.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
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 )
{