summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index a4289b22b..c7ad181df 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2577,9 +2577,9 @@ bool LocalPlayer::isReachable(Being *being, int maxCost)
return true;
}
else if (being->getTileX() - 1 <= getTileX()
- && being->getTileX() + 1 >= getTileX()
- && being->getTileY() - 1 <= getTileY()
- && being->getTileY() + 1 >= getTileY())
+ && being->getTileX() + 1 >= getTileX()
+ && being->getTileY() - 1 <= getTileY()
+ && being->getTileY() + 1 >= getTileY())
{
being->setDistance(1);
being->setIsReachable(Being::REACH_YES);