From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/particle/textparticle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particle/textparticle.h') diff --git a/src/particle/textparticle.h b/src/particle/textparticle.h index 70dbad956..7064a5358 100644 --- a/src/particle/textparticle.h +++ b/src/particle/textparticle.h @@ -48,11 +48,11 @@ class TextParticle final : public Particle // hack to improve text visibility int getPixelY() const restrict2 override final A_WARN_UNUSED - { return static_cast(mPos.y + mPos.z); } + { return CAST_S32(mPos.y + mPos.z); } // hack to improve text visibility (for sorting only) int getSortPixelY() const restrict2 override final A_WARN_UNUSED - { return static_cast(mPos.y + mPos.z); } + { return CAST_S32(mPos.y + mPos.z); } private: std::string mText; /**< Text of the particle. */ -- cgit v1.2.3-70-g09d2