diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-13 23:33:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-13 23:33:45 +0300 |
commit | aad864d74e74e89e9d8ec11774d115046a3668cb (patch) | |
tree | 36636714c652a8891f8618763017438855c7dbb1 /src/textparticle.h | |
parent | 1da8072253138fe2b6f4139cf3b2488edaff74c4 (diff) | |
download | manaverse-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.gz manaverse-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.bz2 manaverse-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.xz manaverse-aad864d74e74e89e9d8ec11774d115046a3668cb.zip |
Fix dead mobs and floor items Y sorting position.
Diffstat (limited to 'src/textparticle.h')
-rw-r--r-- | src/textparticle.h | 4 |
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. */ |