diff options
author | Erik Schilling <ablu.erikschilling@gmail.com> | 2013-10-19 17:04:58 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@gmail.com> | 2013-10-19 17:04:58 +0200 |
commit | 731d87cab6975f93878e8066e328eee2e8115f29 (patch) | |
tree | d0454c3e9dabbf4aec5792bcdc02adced27c1519 /src | |
parent | 592e88aa797b0c05b38c2169e0e93fcf14f4ec1b (diff) | |
download | manaserv-731d87cab6975f93878e8066e328eee2e8115f29.tar.gz manaserv-731d87cab6975f93878e8066e328eee2e8115f29.tar.bz2 manaserv-731d87cab6975f93878e8066e328eee2e8115f29.tar.xz manaserv-731d87cab6975f93878e8066e328eee2e8115f29.zip |
Fixed negative attribute values
Note @Bertram25: c++11 comes with lowest() min() for float types only
returns the next positive value > 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/attributemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index 3a19e1b6..08b933a2 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -118,7 +118,7 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) false); attribute->modifiers = std::vector<AttributeModifier>(); attribute->minimum = XML::getFloatProperty(attributeNode, "minimum", - std::numeric_limits<double>::min()); + std::numeric_limits<double>::lowest()); attribute->maximum = XML::getFloatProperty(attributeNode, "maximum", std::numeric_limits<double>::max()); attribute->modifiable = XML::getBoolProperty(attributeNode, "modifiable", |