aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2012-02-14 23:41:21 +0100
committerathrxx2012-02-21 21:48:45 +0100
commit3c1e2686b8e8ad36f1cdc3bb2afebd7f9de72845 (patch)
tree9f9d7ad64cbd33d13b50031e407c695bfe0443fe /engines
parent930bcbf2dceebbdd7d29e3e1c478b2f7aafbf933 (diff)
downloadscummvm-rg350-3c1e2686b8e8ad36f1cdc3bb2afebd7f9de72845.tar.gz
scummvm-rg350-3c1e2686b8e8ad36f1cdc3bb2afebd7f9de72845.tar.bz2
scummvm-rg350-3c1e2686b8e8ad36f1cdc3bb2afebd7f9de72845.zip
KYRA: (EOB) - fix minor sprite drawing glitch in EOB1
(some sprites were drawn one pixel too far to the right)
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sprites_eob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp
index 068647aeec..5c679f5cb4 100644
--- a/engines/kyra/sprites_eob.cpp
+++ b/engines/kyra/sprites_eob.cpp
@@ -335,6 +335,8 @@ const int16 *EoBCoreEngine::findBlockMonsters(uint16 block, int pos, int dir, in
void EoBCoreEngine::drawBlockObject(int flipped, int page, const uint8 *shape, int x, int y, int sd, uint8 *ovl) {
const ScreenDim *d = _screen->getScreenDim(sd);
+ if (_flags.gameID == GI_EOB1)
+ x &= ~1;
_screen->drawShape(page, shape, x - (d->sx << 3), y - d->sy, sd, flipped | (ovl ? 2 : 0), ovl);
}