summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-07 22:15:37 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-07 22:22:35 +0300
commitfa4c5d79b04a319550996c48448cd799fe7fde56 (patch)
tree50ae3263bab7adc6f6a6381f27cf9ebbdbd83b88 /src/resources/beingcommon.cpp
parent7229e881f1a0f7910eb84637d123b33fa9d7ce07 (diff)
downloadmv-fa4c5d79b04a319550996c48448cd799fe7fde56.tar.gz
mv-fa4c5d79b04a319550996c48448cd799fe7fde56.tar.bz2
mv-fa4c5d79b04a319550996c48448cd799fe7fde56.tar.xz
mv-fa4c5d79b04a319550996c48448cd799fe7fde56.zip
Remove useless casts from missile-particle attributes.
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r--src/resources/beingcommon.cpp4
1 files changed, 2 insertions, 2 deletions
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>(