From 9b1c970c70f30733d5d851b834a860365819409c Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 6 Jun 2011 00:37:29 -0600 Subject: Fix particle positions Particles were being drawn with wrong positions due to their Z coordinate being taken into account when sorting actors. Z is now only taken into account when drawing them. Reviewed-by: Bertram --- src/particle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/particle.h') diff --git a/src/particle.h b/src/particle.h index bb8b17fe..a09648ee 100644 --- a/src/particle.h +++ b/src/particle.h @@ -95,7 +95,7 @@ class Particle : public Actor /** * Necessary for sorting with the other sprites. */ - virtual int getPixelY() const + virtual int getDrawPixelY() const { return (int) (mPos.y + mPos.z) - 64; } /** -- cgit v1.2.3-60-g2f50