summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2020-03-14 16:49:59 +0100
committerskyleo <skyleo@skyleo.de>2020-03-14 16:49:59 +0100
commitab5c275e3915def5ce4f1cdd0928a4115db50cb6 (patch)
tree9475b9b47e900f5d04c1d418ecb818915ecb54e9
parent2764e41addcb28863a6d9de5b0407eba9855fa77 (diff)
downloadhercules-ab5c275e3915def5ce4f1cdd0928a4115db50cb6.tar.gz
hercules-ab5c275e3915def5ce4f1cdd0928a4115db50cb6.tar.bz2
hercules-ab5c275e3915def5ce4f1cdd0928a4115db50cb6.tar.xz
hercules-ab5c275e3915def5ce4f1cdd0928a4115db50cb6.zip
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
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
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;
}