From 349f811ab9921e5e2d91411f822b9b6c916a60f7 Mon Sep 17 00:00:00 2001 From: skyleo Date: Thu, 3 Oct 2019 00:04:01 +0200 Subject: Add documentation for set_mobstate --- src/map/unit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-60-g2f50