summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
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
*/