From aad864d74e74e89e9d8ec11774d115046a3668cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Nov 2011 23:33:45 +0300 Subject: Fix dead mobs and floor items Y sorting position. --- src/textparticle.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/textparticle.h') diff --git a/src/textparticle.h b/src/textparticle.h index db9dc1766..b37f25732 100644 --- a/src/textparticle.h +++ b/src/textparticle.h @@ -45,6 +45,10 @@ class TextParticle : public Particle virtual int getPixelY() const { return static_cast(mPos.y + mPos.z); } + // hack to improve text visibility (for sorting only) + virtual int getSortPixelY() const + { return static_cast(mPos.y + mPos.z); } + private: std::string mText; /**< Text of the particle. */ gcn::Font *mTextFont; /**< Font used for drawing the text. */ -- cgit v1.2.3-60-g2f50