summaryrefslogtreecommitdiff
path: root/src/textparticle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-13 23:33:45 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-13 23:33:45 +0300
commitaad864d74e74e89e9d8ec11774d115046a3668cb (patch)
tree36636714c652a8891f8618763017438855c7dbb1 /src/textparticle.h
parent1da8072253138fe2b6f4139cf3b2488edaff74c4 (diff)
downloadmanaplus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.gz
manaplus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.bz2
manaplus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.xz
manaplus-aad864d74e74e89e9d8ec11774d115046a3668cb.zip
Fix dead mobs and floor items Y sorting position.
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. */