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/particle.h | |
parent | 1da8072253138fe2b6f4139cf3b2488edaff74c4 (diff) | |
download | mv-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.gz mv-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.bz2 mv-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.xz mv-aad864d74e74e89e9d8ec11774d115046a3668cb.zip |
Fix dead mobs and floor items Y sorting position.
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/particle.h b/src/particle.h index 0a4a2253d..2e3aa8740 100644 --- a/src/particle.h +++ b/src/particle.h @@ -114,6 +114,12 @@ class Particle : public Actor { return static_cast<int>(mPos.y) - 16; } /** + * Necessary for sorting with the other sprites for sorting only. + */ + virtual int getSortPixelY() const + { return static_cast<int>(mPos.y) - 16; } + + /** * Creates a blank particle as a child of the current particle * Useful for creating target particles */ |