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:29:37 +0200 |
commit | 030102d512940b70d933e0570e43972d5a310113 (patch) | |
tree | db1d15fffcb6298da4cda220972134ad860d98e9 /src | |
parent | 4a5b543868ad8884d8923a0aed49dec8374a39c5 (diff) | |
download | manaserv-030102d512940b70d933e0570e43972d5a310113.tar.gz manaserv-030102d512940b70d933e0570e43972d5a310113.tar.bz2 manaserv-030102d512940b70d933e0570e43972d5a310113.tar.xz manaserv-030102d512940b70d933e0570e43972d5a310113.zip |
Make Attributes modifiable by client again.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/attributemanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index d7a4214a..3e5b1323 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -144,7 +144,9 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) return; } - mAttributeMap[id].modifiable = false; + // 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()); |