summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-06 17:56:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-06 18:04:42 +0300
commit23dcc6af6b06901088ceac938850e8fa8717e422 (patch)
treec87136cd1816a1340972464900511593fd5e5bec /src/being/being.cpp
parent8b89f43575300bceaa7ce659117707f1cbc5eddd (diff)
downloadmv-23dcc6af6b06901088ceac938850e8fa8717e422.tar.gz
mv-23dcc6af6b06901088ceac938850e8fa8717e422.tar.bz2
mv-23dcc6af6b06901088ceac938850e8fa8717e422.tar.xz
mv-23dcc6af6b06901088ceac938850e8fa8717e422.zip
Add support for player rider offset by x and y.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 14fddc6c0..8ce14bc40 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3521,7 +3521,9 @@ void Being::drawPlayer(Graphics *restrict const graphics,
}
drawBeingCursor(graphics, px, py);
- drawPlayerSpriteAt(graphics, px, py);
+ drawPlayerSpriteAt(graphics,
+ px + mHorseInfo->riderOffsetX,
+ py + mHorseInfo->riderOffsetY);
for_each_horses(mUpHorseSprites)
{