diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/beingcommon.cpp | 12 | ||||
-rw-r--r-- | src/resources/db/itemdb.cpp | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp index e2294f37d..441b1ee7c 100644 --- a/src/resources/beingcommon.cpp +++ b/src/resources/beingcommon.cpp @@ -231,14 +231,14 @@ bool BeingCommon::readObjectNodes(XmlNodePtrConst &spriteNode, const std::string missileParticle = XML::getProperty(spriteNode, "missile-particle", ""); - const float missileZ = static_cast<float>(XML::getFloatProperty( - spriteNode, "missile-z", 32.0f)); + const float missileZ = XML::getFloatProperty( + spriteNode, "missile-z", 32.0f); const int missileLifeTime = XML::getProperty( spriteNode, "missile-lifetime", 500); - const float missileSpeed = static_cast<float>(XML::getFloatProperty( - spriteNode, "missile-speed", 7.0f)); - const float missileDieDistance = static_cast<float>( - XML::getFloatProperty(spriteNode, "missile-diedistance", 8.0f)); + const float missileSpeed = XML::getFloatProperty( + spriteNode, "missile-speed", 7.0f); + const float missileDieDistance = XML::getFloatProperty( + spriteNode, "missile-diedistance", 8.0f); currentInfo->addAttack(attackId, spriteAction, diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 9fcedeab1..a1395142a 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -396,14 +396,14 @@ void ItemDB::loadXmlFile(const std::string &fileName, int attackRange = XML::getProperty(node, "attack-range", 0); std::string missileParticle = XML::getProperty( node, "missile-particle", ""); - float missileZ = static_cast<float>(XML::getFloatProperty( - node, "missile-z", 32.0f)); + float missileZ = XML::getFloatProperty( + node, "missile-z", 32.0f); int missileLifeTime = XML::getProperty( node, "missile-lifetime", 500); - float missileSpeed = static_cast<float>(XML::getFloatProperty( - node, "missile-speed", 7.0f)); - float missileDieDistance = static_cast<float>(XML::getFloatProperty( - node, "missile-diedistance", 8.0f)); + float missileSpeed = XML::getFloatProperty( + node, "missile-speed", 7.0f); + float missileDieDistance = XML::getFloatProperty( + node, "missile-diedistance", 8.0f); int hitEffectId = XML::getProperty(node, "hit-effect-id", paths.getIntValue("hitEffectId")); int criticalEffectId = XML::getProperty( |