summaryrefslogtreecommitdiff
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-09 03:45:42 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-02-02 15:35:17 +0100
commit1e562bdd132c4166ca4de2bdb3f241adaa9a7149 (patch)
tree84bca9f39cfd3c05d3a315c8e9cd854b18cb4682 /src/game-server/being.cpp
parent4cd1957231605e976c5cf001eddea80d5e49272f (diff)
downloadmanaserv-1e562bdd132c4166ca4de2bdb3f241adaa9a7149.tar.gz
manaserv-1e562bdd132c4166ca4de2bdb3f241adaa9a7149.tar.bz2
manaserv-1e562bdd132c4166ca4de2bdb3f241adaa9a7149.tar.xz
manaserv-1e562bdd132c4166ca4de2bdb3f241adaa9a7149.zip
Added a way to specify the min and max attributes values.
This can now be done in attributes.xml through the minimum and maximum attribute parameters. I also changed the AttributeInfo struct as requested by bjorn. Reviewed-by: Erik Schilling, Thorbjørn Lindeijer
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 82080459..d44d2a6d 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -42,9 +42,9 @@ Being::Being(ThingType type):
mGender(GENDER_UNSPECIFIED),
mDirection(DOWN)
{
- const AttributeScope &attr = attributeManager->getAttributeScope(BeingScope);
+ const AttributeManager::AttributeScope &attr = attributeManager->getAttributeScope(BeingScope);
LOG_DEBUG("Being creation: initialisation of " << attr.size() << " attributes.");
- for (AttributeScope::const_iterator it1 = attr.begin(),
+ for (AttributeManager::AttributeScope::const_iterator it1 = attr.begin(),
it1_end = attr.end();
it1 != it1_end;
++it1)