diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-13 01:11:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-13 01:11:50 +0300 |
commit | 308e352fbf2fd4f96d797e596fc41083e53e6106 (patch) | |
tree | e874de1b2ebcaec013f6b1c3363faacc698a438d /src/actorspritemanager.cpp | |
parent | c67648bcc2ebd94da7ad90dc1f886b9f8206de8e (diff) | |
download | mv-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.gz mv-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.bz2 mv-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.xz mv-308e352fbf2fd4f96d797e596fc41083e53e6106.zip |
Fix code style.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp index dc6676dfd..4a36d6e1d 100644 --- a/src/actorspritemanager.cpp +++ b/src/actorspritemanager.cpp @@ -611,7 +611,8 @@ bool ActorSpriteManager::pickUpAll(const int x1, const int y1, return finded; } -bool ActorSpriteManager::pickUpNearest(const int x, const int y, int maxdist) const +bool ActorSpriteManager::pickUpNearest(const int x, const int y, + int maxdist) const { if (!player_node) return false; @@ -1553,7 +1554,8 @@ void ActorSpriteManager::rebuildPickupItems() } int ActorSpriteManager::getIndexByName(const std::string &name, - const std::map<std::string, int> &map) const + const std::map<std::string, int> &map) + const { const std::map<std::string, int>::const_iterator i = map.find(name); @@ -1563,7 +1565,8 @@ int ActorSpriteManager::getIndexByName(const std::string &name, return (*i).second; } -int ActorSpriteManager::getPriorityAttackMobIndex(const std::string &name) const +int ActorSpriteManager::getPriorityAttackMobIndex(const std::string &name) + const { return getIndexByName(name, mPriorityAttackMobsMap); } @@ -1643,7 +1646,8 @@ bool ActorSpriteManager::checkForPickup(const FloorItem *const item) const return true; } } - else if (item && mPickupItemsSet.find(item->getName()) != mPickupItemsSet.end()) + else if (item && mPickupItemsSet.find(item->getName()) + != mPickupItemsSet.end()) { return true; } |