diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2012-07-31 21:33:59 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2012-07-31 21:33:59 +0200 |
commit | 6107334720625e1e50c7ac04cda7b0fa161d1dca (patch) | |
tree | 9b219cf84c8a197165d022d9b6dc8ce0cc6f6e47 | |
parent | 030102d512940b70d933e0570e43972d5a310113 (diff) | |
download | manaserv-6107334720625e1e50c7ac04cda7b0fa161d1dca.tar.gz manaserv-6107334720625e1e50c7ac04cda7b0fa161d1dca.tar.bz2 manaserv-6107334720625e1e50c7ac04cda7b0fa161d1dca.tar.xz manaserv-6107334720625e1e50c7ac04cda7b0fa161d1dca.zip |
fixup modifiable attribute.
-rw-r--r-- | src/game-server/attributemanager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index 3e5b1323..3a70fd9a 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -144,14 +144,13 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) return; } - // TODO: this was defaulting to false, but there is no way yet to change it - // introduce a modifier in attributes.xml to either make it true or false. - mAttributeMap[id].modifiable = true; 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) { |