summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-06-06 00:37:29 -0600
committerJared Adams <jaxad0127@gmail.com>2011-06-07 08:24:04 -0600
commit9b1c970c70f30733d5d851b834a860365819409c (patch)
tree860f19199c810d50fdd166a397f9c78b0c46ce10 /src/particle.h
parent70a0d0bd23a3f2df5441f037c204604e52935974 (diff)
downloadMana-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.h2
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; }
/**