summaryrefslogtreecommitdiff
path: root/src/particle/textparticle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/textparticle.h')
-rw-r--r--src/particle/textparticle.h4
1 files changed, 2 insertions, 2 deletions
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<int>(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<int>(mPos.y + mPos.z); }
+ { return CAST_S32(mPos.y + mPos.z); }
private:
std::string mText; /**< Text of the particle. */