diff options
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 4d6882be..4b8833eb 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -453,6 +453,11 @@ float Particle::getCurrentAlpha() const return alpha; } +int Particle::getDrawOrder() const +{ + return (int)(mPos.y) - 16; +} + void Particle::clear() { delete_all(mChildEmitters); |