From fa4c5d79b04a319550996c48448cd799fe7fde56 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Aug 2017 22:15:37 +0300 Subject: Remove useless casts from missile-particle attributes. --- src/resources/db/itemdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/db/itemdb.cpp') 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(XML::getFloatProperty( node, "missile-z", 32.0f)); - int missileLifeTime = static_cast(XML::getProperty( - node, "missile-lifetime", 500)); + int missileLifeTime = XML::getProperty( + node, "missile-lifetime", 500); float missileSpeed = static_cast(XML::getFloatProperty( node, "missile-speed", 7.0f)); float missileDieDistance = static_cast(XML::getFloatProperty( -- cgit v1.2.3-70-g09d2