From 8571843f1405e676142e7bb289f9879d10a888ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Mar 2013 13:32:49 +0300 Subject: add walkmaps support. Fast detecting between two targets is they in same walkable area. --- src/localplayer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index dcb95a119..7dfa6025f 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -300,12 +300,12 @@ class LocalPlayer final : public Being, void debugMsg(const std::string &str) const; - bool isReachable(const int x, const int y, - const int maxCost = 0) const A_WARN_UNUSED; - bool isReachable(Being *const being, const int maxCost = 0) A_WARN_UNUSED; + bool isReachable(const int x, const int y, + const int allowCollision) const A_WARN_UNUSED; + void setHome(); void pingRequest(); -- cgit v1.2.3-60-g2f50