diff options
author | Max Horn | 2003-08-25 20:57:36 +0000 |
---|---|---|
committer | Max Horn | 2003-08-25 20:57:36 +0000 |
commit | 52534e2cc3ac5e35bcb189fb16c360d6c9eaec2d (patch) | |
tree | 463c1aaa15abacd8163a9e04a8dadd0c27ea69d1 /scumm | |
parent | 8977d6ce079ad6328fbd38d11750f73904fa363e (diff) | |
download | scummvm-rg350-52534e2cc3ac5e35bcb189fb16c360d6c9eaec2d.tar.gz scummvm-rg350-52534e2cc3ac5e35bcb189fb16c360d6c9eaec2d.tar.bz2 scummvm-rg350-52534e2cc3ac5e35bcb189fb16c360d6c9eaec2d.zip |
fix actor position in V1 games (by eyeballing the original in dosbox); still seems to be off 1 pixel vertically (?), and actors still leave dirt
svn-id: r9864
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/actor.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 5c56fa8cc1..8526eb61b3 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -958,13 +958,16 @@ void Actor::drawActorCostume() { bcr->_actorX = x - _vm->virtscr[0].xstart; bcr->_actorY = y - elevation; - if (_vm->_version == 2) { - // FIXME: We have to adjust the x position by one strip (8 pixels) in V2 games - // However, it is not quite clear to me why. And to fully match the original, - // it seems we have to offset by 2 strips when facing left (270 degree). + if (_vm->_version <= 2) { + // HACK: We have to adjust the x position by one strip (8 pixels) in + // V2 games. However, it is not quite clear to me why. And to fully + // match the original, it seems we have to offset by 2 strips if the + // actor is facing left (270 degree). + // V1 games are once again slightly different, here we only have + // to adjust the 270 degree case... if (facing == 270) bcr->_actorX += 16; - else + else if (_vm->_version == 2) bcr->_actorX += 8; } |