diff options
author | skyleo <skyleo@skyleo.de> | 2019-10-03 00:04:01 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-03-08 20:56:28 +0100 |
commit | 349f811ab9921e5e2d91411f822b9b6c916a60f7 (patch) | |
tree | 438e3546d31ce0ccba2950f1d573f263142609be /src/map | |
parent | a70f43dc90f634b1e840d3e77895c433bcc91d71 (diff) | |
download | hercules-349f811ab9921e5e2d91411f822b9b6c916a60f7.tar.gz hercules-349f811ab9921e5e2d91411f822b9b6c916a60f7.tar.bz2 hercules-349f811ab9921e5e2d91411f822b9b6c916a60f7.tar.xz hercules-349f811ab9921e5e2d91411f822b9b6c916a60f7.zip |
Add documentation for set_mobstate
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index b0d7a6767..37a211ba1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -597,7 +597,12 @@ static int unit_walktoxy(struct block_list *bl, short x, short y, int flag) return unit->walktoxy_sub(bl); } -//To set Mob's CHASE/FOLLOW states (shouldn't be done if there's no path to reach) +/** + * Sets mob's CHASE / FOLLOW states. + * WARNING: This shouldn't be done if there's no path to reach + * @param bl: block_list of mob + * @param flag: if set to 0 this function will set nothing + */ static inline void set_mobstate(struct block_list *bl, int flag) { struct mob_data* md = BL_CAST(BL_MOB,bl); |