summaryrefslogtreecommitdiff
path: root/src/actor.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/actor.h
parent70a0d0bd23a3f2df5441f037c204604e52935974 (diff)
downloadmana-client-9b1c970c70f30733d5d851b834a860365819409c.tar.gz
mana-client-9b1c970c70f30733d5d851b834a860365819409c.tar.bz2
mana-client-9b1c970c70f30733d5d851b834a860365819409c.tar.xz
mana-client-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.h8
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;