diff options
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/particle.h b/src/particle.h index a09648ee..7ba80a3c 100644 --- a/src/particle.h +++ b/src/particle.h @@ -95,8 +95,13 @@ class Particle : public Actor /** * Necessary for sorting with the other sprites. */ - virtual int getDrawPixelY() const - { return (int) (mPos.y + mPos.z) - 64; } + virtual int getDrawOrder() const; + + /** + * Do not draw particles when beind other objects + */ + virtual bool drawnWhenBehind() const + { return false; } /** * Creates a blank particle as a child of the current particle |