diff options
author | Jared Adams <jaxad0127@gmail.com> | 2011-06-06 00:37:29 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-06-07 08:24:04 -0600 |
commit | 9b1c970c70f30733d5d851b834a860365819409c (patch) | |
tree | 860f19199c810d50fdd166a397f9c78b0c46ce10 /src/particle.h | |
parent | 70a0d0bd23a3f2df5441f037c204604e52935974 (diff) | |
download | mana-9b1c970c70f30733d5d851b834a860365819409c.tar.gz mana-9b1c970c70f30733d5d851b834a860365819409c.tar.bz2 mana-9b1c970c70f30733d5d851b834a860365819409c.tar.xz mana-9b1c970c70f30733d5d851b834a860365819409c.zip |
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
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /** |