diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-07 22:15:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-07 22:22:35 +0300 |
commit | fa4c5d79b04a319550996c48448cd799fe7fde56 (patch) | |
tree | 50ae3263bab7adc6f6a6381f27cf9ebbdbd83b88 /src/resources/db | |
parent | 7229e881f1a0f7910eb84637d123b33fa9d7ce07 (diff) | |
download | mv-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/db')
-rw-r--r-- | src/resources/db/itemdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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( |