diff options
author | Andrew Kurushin | 2005-03-13 17:43:50 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-03-13 17:43:50 +0000 |
commit | 7e256531fd1494a32ac0c5c9805082057ace88fc (patch) | |
tree | 48fe0cb08d283f7bfe5c87b7ba09f9e2b7e3fc6a /saga/actor.h | |
parent | f6d0d6bdf127b827fe1738e528a5d09481970cff (diff) | |
download | scummvm-rg350-7e256531fd1494a32ac0c5c9805082057ace88fc.tar.gz scummvm-rg350-7e256531fd1494a32ac0c5c9805082057ace88fc.tar.bz2 scummvm-rg350-7e256531fd1494a32ac0c5c9805082057ace88fc.zip |
fixed wrong tile drawing above actors
svn-id: r17129
Diffstat (limited to 'saga/actor.h')
-rw-r--r-- | saga/actor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/saga/actor.h b/saga/actor.h index babc847ef8..0d87b6a4cd 100644 --- a/saga/actor.h +++ b/saga/actor.h @@ -152,6 +152,9 @@ struct Location { int v() const { return y; } + int uv() const { + return u() + v(); + } void delta(const Location &location, Location &result) const { result.x = x - location.x; result.y = y - location.y; @@ -171,6 +174,10 @@ struct Location { screenPoint.x = x / ACTOR_LMULT; screenPoint.y = y / ACTOR_LMULT; } + void toScreenPointUV(Point &screenPoint) const { + screenPoint.x = u(); + screenPoint.y = v(); + } void toScreenPointXYZ(Point &screenPoint) const { screenPoint.x = x / ACTOR_LMULT; screenPoint.y = y / ACTOR_LMULT - z; |