summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-20 00:34:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-20 00:34:20 +0300
commit899d3b925ccb249de881bbc957f6e4ddc754cbbd (patch)
tree4c35a6f21d909f9bc07ed091f0c8e3cb5f700105 /src/gui/windows/skilldialog.cpp
parent1049de4c76ac6fc85c9f7f2bd35fb62ca787aa4c (diff)
downloadmv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.gz
mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.bz2
mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.xz
mv-899d3b925ccb249de881bbc957f6e4ddc754cbbd.zip
Add function for read float and double number from xml.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index b4e277b98..b5a49b0ca 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -564,26 +564,26 @@ void SkillDialog::loadSkillData(XmlNodeConstPtr node,
MissileInfo &missile = data->missile;
missile.particle = XML::getProperty(
node, "missile-particle", "");
- missile.z = static_cast<float>(XML::getFloatProperty(
- node, "missile-z", 32.0f));
+ missile.z = XML::getFloatProperty(
+ node, "missile-z", 32.0f);
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>(
- XML::getFloatProperty(node, "missile-diedistance", 8.0f));
+ missile.speed = XML::getFloatProperty(
+ node, "missile-speed", 7.0f);
+ missile.dieDistance = XML::getFloatProperty(
+ node, "missile-diedistance", 8.0f);
MissileInfo &castingMissile = data->castingMissile;
castingMissile.particle = XML::getProperty(
node, "castingMissile-particle", "");
- castingMissile.z = static_cast<float>(XML::getFloatProperty(
- node, "castingMissile-z", 32.0f));
+ castingMissile.z = XML::getFloatProperty(
+ node, "castingMissile-z", 32.0f);
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>(
- XML::getFloatProperty(node, "castingMissile-diedistance", 8.0f));
+ castingMissile.speed = XML::getFloatProperty(
+ node, "castingMissile-speed", 7.0f);
+ castingMissile.dieDistance = XML::getFloatProperty(
+ node, "castingMissile-diedistance", 8.0f);
data->castingAnimation = XML::getProperty(
node,