summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-22 17:28:21 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-22 17:28:21 +0300
commit9a1011a40d1c014d075d5a4f95be13dd74c361c4 (patch)
tree3db41fbfdef85e175f73bdc50bbee6c0a8b4921d /src/localplayer.cpp
parentafb249acef3b8c589cc2bb54978514d831716dbd (diff)
downloadmv-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.gz
mv-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.bz2
mv-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.xz
mv-9a1011a40d1c014d075d5a4f95be13dd74c361c4.zip
Fix code style.
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);