summaryrefslogtreecommitdiff
path: root/src/game-server/monstermanager.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-19 12:30:19 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-20 15:09:09 +0100
commitfbcc334baf71ca8735adb66c837f6bb610cba758 (patch)
treeefc041388a48a7908e79677540df97c99a9b2eeb /src/game-server/monstermanager.cpp
parent5b3c4a585b211b03fb2999cddd2558e030ed5c0e (diff)
downloadmanaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.tar.gz
manaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.tar.bz2
manaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.tar.xz
manaserv-fbcc334baf71ca8735adb66c837f6bb610cba758.zip
Renaming stuff to make the code more readable
SCOPE_TYPES -> ScopeType (plural was confusing) ATTR_BEING -> BeingScope ATTR_CHAR -> CharacterScope ATTR_MOD -> MonsterScope ATTR_MAX -> MaxScope AttributeScopes -> AttributeScope (A single scope seems to include multiple lists of attributes. Seems wrong to me to name this type in plural form.) getAttributeInfoForType -> getAttributeScope (just naming it after what it is actually returning) Reviewed-by: Freeyorp
Diffstat (limited to 'src/game-server/monstermanager.cpp')
-rw-r--r--src/game-server/monstermanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp
index a719e1a8..a98126e0 100644
--- a/src/game-server/monstermanager.cpp
+++ b/src/game-server/monstermanager.cpp
@@ -164,10 +164,10 @@ void MonsterManager::reload()
}
bool attributesComplete = true;
- const AttributeScopes &mobAttr =
- attributeManager->getAttributeInfoForType(ATTR_MOB);
+ const AttributeScope &mobAttr =
+ attributeManager->getAttributeScope(MonsterScope);
- for (AttributeScopes::const_iterator it = mobAttr.begin(),
+ for (AttributeScope::const_iterator it = mobAttr.begin(),
it_end = mobAttr.end(); it != it_end; ++it)
{
if (!monster->mAttributes.count(it->first))