summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/skilldialog.cpp8
-rw-r--r--src/resources/beingcommon.cpp4
-rw-r--r--src/resources/db/itemdb.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 056256938..f48baaf83 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -568,8 +568,8 @@ void SkillDialog::loadSkillData(XmlNodeConstPtr node,
node, "missile-particle", "");
missile.z = static_cast<float>(XML::getFloatProperty(
node, "missile-z", 32.0f));
- missile.lifeTime = static_cast<float>(XML::getProperty(
- node, "missile-lifetime", 500));
+ missile.lifeTime = XML::getProperty(
+ node, "missile-lifetime", 500);
missile.speed = static_cast<float>(XML::getFloatProperty(
node, "missile-speed", 7.0f));
missile.dieDistance = static_cast<float>(
@@ -580,8 +580,8 @@ void SkillDialog::loadSkillData(XmlNodeConstPtr node,
node, "castingMissile-particle", "");
castingMissile.z = static_cast<float>(XML::getFloatProperty(
node, "castingMissile-z", 32.0f));
- castingMissile.lifeTime = static_cast<float>(XML::getProperty(
- node, "castingMissile-lifetime", 500));
+ castingMissile.lifeTime = XML::getProperty(
+ node, "castingMissile-lifetime", 500);
castingMissile.speed = static_cast<float>(XML::getFloatProperty(
node, "castingMissile-speed", 7.0f));
castingMissile.dieDistance = static_cast<float>(
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp
index 1154de44c..e2294f37d 100644
--- a/src/resources/beingcommon.cpp
+++ b/src/resources/beingcommon.cpp
@@ -233,8 +233,8 @@ bool BeingCommon::readObjectNodes(XmlNodePtrConst &spriteNode,
const float missileZ = static_cast<float>(XML::getFloatProperty(
spriteNode, "missile-z", 32.0f));
- const int missileLifeTime = static_cast<float>(XML::getProperty(
- spriteNode, "missile-lifetime", 500));
+ 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>(
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index b25e2d7e8..6a7ed29eb 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -347,8 +347,8 @@ void ItemDB::loadXmlFile(const std::string &fileName,
node, "missile-particle", "");
float missileZ = static_cast<float>(XML::getFloatProperty(
node, "missile-z", 32.0f));
- int missileLifeTime = static_cast<float>(XML::getProperty(
- node, "missile-lifetime", 500));
+ 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(