diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-25 01:52:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-25 02:16:11 +0300 |
commit | da457cf152d5aff51d859c18d3668682348dbf7a (patch) | |
tree | 6ec10caec1fc472f2ef3c7664a1c536434df1c0f /src/localplayer.cpp | |
parent | b474de4a54c9b1d4d863971e40b807588d554436 (diff) | |
download | manaplus-da457cf152d5aff51d859c18d3668682348dbf7a.tar.gz manaplus-da457cf152d5aff51d859c18d3668682348dbf7a.tar.bz2 manaplus-da457cf152d5aff51d859c18d3668682348dbf7a.tar.xz manaplus-da457cf152d5aff51d859c18d3668682348dbf7a.zip |
change vars or methods to const.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 0c7c8a326..dec72bcf7 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -2977,7 +2977,7 @@ void LocalPlayer::crazyMoveA() mCrazyMoveState = 0; } -bool LocalPlayer::isReachable(int x, int y, int maxCost) +bool LocalPlayer::isReachable(int x, int y, int maxCost) const { if (!mMap) return false; @@ -2998,7 +2998,7 @@ bool LocalPlayer::isReachable(int x, int y, int maxCost) return !debugPath.empty(); } -bool LocalPlayer::isReachable(Being *being, int maxCost) +bool LocalPlayer::isReachable(Being *being, int maxCost) const { if (!being || !mMap) return false; |