From 6b7bfcf7508a7d3778082190a0f709775453649a Mon Sep 17 00:00:00 2001 From: skyleo Date: Thu, 3 Oct 2019 03:59:08 +0200 Subject: Add documentation for unit->walktobl_timer --- src/map/unit.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/map/unit.c b/src/map/unit.c index 644fd47bb..3c86ff02d 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -615,6 +615,15 @@ static inline void set_mobstate(struct block_list *bl, int flag) } } +/** + * Timer used for when a unit can't walk towards its target yet due to it's canmove_tick, + * keeps retrying until it works or target changes. + * @param tid: Timer ID, unused + * @param tick: Tick, unused + * @param id: ID of block_list to execute the action + * @param data: ID of block_list to walk towards + * @return 0: success, 1: failure + */ static int unit_walktobl_timer(int tid, int64 tick, int id, intptr_t data) { struct block_list *bl = map->id2bl(id); -- cgit v1.2.3-60-g2f50