From ab5c275e3915def5ce4f1cdd0928a4115db50cb6 Mon Sep 17 00:00:00 2001 From: skyleo Date: Sat, 14 Mar 2020 16:49:59 +0100 Subject: Fix wrong return-value on success by unit->walktobl This bugged aggressive monsters for example, as they wouldn't move to you and just do a move animation on 1 cell, stationary. Introduced by fe378985d5267bee1f73049c826ad4f1e9c2b9c4 --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/unit.c b/src/map/unit.c index d2cfcb03d..dd644d8d1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -730,7 +730,7 @@ static int unit_walktobl(struct block_list *bl, struct block_list *tbl, int rang if (unit->walk_toxy_sub(bl) == 0 && (flag & 2) != 0) { set_mobstate(bl); - return 0; + return 1; } return 0; } -- cgit v1.2.3-60-g2f50