summaryrefslogtreecommitdiff
path: root/src/particle.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/particle.h
parent1da8072253138fe2b6f4139cf3b2488edaff74c4 (diff)
downloadplus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.gz
plus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.bz2
plus-aad864d74e74e89e9d8ec11774d115046a3668cb.tar.xz
plus-aad864d74e74e89e9d8ec11774d115046a3668cb.zip
Fix dead mobs and floor items Y sorting position.
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h6
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
*/