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/beingcommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/beingcommon.cpp') 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(XML::getFloatProperty( spriteNode, "missile-z", 32.0f)); - const int missileLifeTime = static_cast(XML::getProperty( - spriteNode, "missile-lifetime", 500)); + const int missileLifeTime = XML::getProperty( + spriteNode, "missile-lifetime", 500); const float missileSpeed = static_cast(XML::getFloatProperty( spriteNode, "missile-speed", 7.0f)); const float missileDieDistance = static_cast( -- cgit v1.2.3-70-g09d2