diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2012-07-31 21:28:49 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2012-07-31 21:37:49 +0200 |
commit | 6eb5d8de435e6870aa63e1a34e880faa9fd784f2 (patch) | |
tree | 46c01724f375052dd0edefa0546f28dd1f447f44 | |
parent | 4477f5343bd41a332277731542d943d78bdfc4ce (diff) | |
download | manaserv-6eb5d8de435e6870aa63e1a34e880faa9fd784f2.tar.gz manaserv-6eb5d8de435e6870aa63e1a34e880faa9fd784f2.tar.bz2 manaserv-6eb5d8de435e6870aa63e1a34e880faa9fd784f2.tar.xz manaserv-6eb5d8de435e6870aa63e1a34e880faa9fd784f2.zip |
Make Attributes modifiable by client again.
Reviewed-by: bjorn
-rw-r--r-- | src/game-server/attributemanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index d7a4214a..3a70fd9a 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -144,12 +144,13 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) return; } - mAttributeMap[id].modifiable = false; mAttributeMap[id].modifiers = std::vector<AttributeModifier>(); mAttributeMap[id].minimum = XML::getFloatProperty(attributeNode, "minimum", std::numeric_limits<double>::min()); mAttributeMap[id].maximum = XML::getFloatProperty(attributeNode, "maximum", std::numeric_limits<double>::max()); + mAttributeMap[id].modifiable = XML::getBoolProperty(attributeNode, "modifiable", + false); for_each_xml_child_node(subNode, attributeNode) { |