summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/actorspritemanager.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadmv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
mv-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 5809eeec7..3f8215eda 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -816,14 +816,16 @@ void ActorSpriteManager::clear()
Being *ActorSpriteManager::findNearestLivingBeing(const int x, const int y,
const int maxTileDist,
const ActorSprite::Type type,
- Being *const excluded) const
+ const Being *const
+ excluded) const
{
const int maxDist = maxTileDist * 32;
return findNearestLivingBeing(nullptr, maxDist, type, x, y, excluded);
}
-Being *ActorSpriteManager::findNearestLivingBeing(Being *const aroundBeing,
+Being *ActorSpriteManager::findNearestLivingBeing(const Being *const
+ aroundBeing,
const int maxDist,
const Being::Type type) const
{
@@ -834,11 +836,12 @@ Being *ActorSpriteManager::findNearestLivingBeing(Being *const aroundBeing,
aroundBeing->getTileX(), aroundBeing->getTileY(), aroundBeing);
}
-Being *ActorSpriteManager::findNearestLivingBeing(Being *const aroundBeing,
- int maxDist,
+Being *ActorSpriteManager::findNearestLivingBeing(const Being *const
+ aroundBeing, int maxDist,
const Being::Type type,
const int x, const int y,
- Being *const excluded) const
+ const Being *const
+ excluded) const
{
if (!aroundBeing || !player_node)
return nullptr;