From aad864d74e74e89e9d8ec11774d115046a3668cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Nov 2011 23:33:45 +0300 Subject: Fix dead mobs and floor items Y sorting position. --- src/particle.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/particle.h') diff --git a/src/particle.h b/src/particle.h index 0a4a2253d..2e3aa8740 100644 --- a/src/particle.h +++ b/src/particle.h @@ -113,6 +113,12 @@ class Particle : public Actor virtual int getPixelY() const { return static_cast(mPos.y) - 16; } + /** + * Necessary for sorting with the other sprites for sorting only. + */ + virtual int getSortPixelY() const + { return static_cast(mPos.y) - 16; } + /** * Creates a blank particle as a child of the current particle * Useful for creating target particles -- cgit v1.2.3-60-g2f50