summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2019-10-03 03:59:08 +0200
committerHaru <haru@dotalux.com>2020-03-08 20:59:34 +0100
commit6b7bfcf7508a7d3778082190a0f709775453649a (patch)
tree3868b4ac02c859be98cd62af13dd905801b8ac25
parent63b3f95389e56437fc630e7f6051f1a419322fee (diff)
downloadhercules-6b7bfcf7508a7d3778082190a0f709775453649a.tar.gz
hercules-6b7bfcf7508a7d3778082190a0f709775453649a.tar.bz2
hercules-6b7bfcf7508a7d3778082190a0f709775453649a.tar.xz
hercules-6b7bfcf7508a7d3778082190a0f709775453649a.zip
Add documentation for unit->walktobl_timer
-rw-r--r--src/map/unit.c9
1 files changed, 9 insertions, 0 deletions
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);