diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-22 17:28:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-22 17:28:21 +0300 |
commit | 9a1011a40d1c014d075d5a4f95be13dd74c361c4 (patch) | |
tree | 3db41fbfdef85e175f73bdc50bbee6c0a8b4921d /src/localplayer.cpp | |
parent | afb249acef3b8c589cc2bb54978514d831716dbd (diff) | |
download | plus-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.gz plus-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.bz2 plus-9a1011a40d1c014d075d5a4f95be13dd74c361c4.tar.xz plus-9a1011a40d1c014d075d5a4f95be13dd74c361c4.zip |
Fix code style.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 6 |
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); |