summaryrefslogtreecommitdiff
path: root/src/textparticle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/textparticle.h')
-rw-r--r--src/textparticle.h4
1 files changed, 4 insertions, 0 deletions
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<int>(mPos.y + mPos.z); }
+ // hack to improve text visibility (for sorting only)
+ virtual int getSortPixelY() const
+ { return static_cast<int>(mPos.y + mPos.z); }
+
private:
std::string mText; /**< Text of the particle. */
gcn::Font *mTextFont; /**< Font used for drawing the text. */