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/actor.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/actor.h')
-rw-r--r-- | src/actor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/actor.h b/src/actor.h index 1442d4b3..240b5097 100644 --- a/src/actor.h +++ b/src/actor.h @@ -83,10 +83,16 @@ public: /** * Returns the pixel Y coordinate of the actor. */ - virtual int getPixelY() const + int getPixelY() const { return (int) mPos.y; } /** + * Returns the pixel Y coordinate that the actor should be drawn at. + */ + virtual int getDrawPixelY() const + { return getPixelY(); } + + /** * Returns the x coordinate in tiles of the actor. */ virtual int getTileX() const; |