diff options
author | skyleo <skyleo@skyleo.de> | 2019-09-10 22:50:48 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-03-08 20:56:28 +0100 |
commit | 02f661dc3b112efb9d4e61d3b15f9f0fa840e9ee (patch) | |
tree | 336244a354c02f155ff8c2fc5fea1990d7e44735 | |
parent | 3d34c37c8affc7ca5711245dadaaf3f3cecbba41 (diff) | |
download | hercules-02f661dc3b112efb9d4e61d3b15f9f0fa840e9ee.tar.gz hercules-02f661dc3b112efb9d4e61d3b15f9f0fa840e9ee.tar.bz2 hercules-02f661dc3b112efb9d4e61d3b15f9f0fa840e9ee.tar.xz hercules-02f661dc3b112efb9d4e61d3b15f9f0fa840e9ee.zip |
Add documentation for unit->delay_walktoxy_timer
-rw-r--r-- | src/map/unit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 75bed7eca..8eb490c34 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -494,6 +494,14 @@ static int unit_walktoxy_timer(int tid, int64 tick, int id, intptr_t data) return 0; } +/** + * Timer for delayed execution of unit->walktoxy once triggered + * @param tid: Timer ID, unused + * @param tick: Tick, unused + * @param id: ID of block_list to execute the action + * @param data: intptr_t filled with x-coord in highest 16 bits and y-coord in lowest 16 bits + * @return 0: success, 1: failure + */ static int unit_delay_walktoxy_timer(int tid, int64 tick, int id, intptr_t data) { struct block_list *bl = map->id2bl(id); |