diff options
author | Adrian Frühwirth | 2018-01-26 11:29:17 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-01-31 19:00:47 +0100 |
commit | ff8e4a4410eb28690d7b220a99ee47f1e672d71a (patch) | |
tree | ca93392692b52fe68eff2c139f9adc67996c4cc0 /engines/tucker/tucker.cpp | |
parent | cb5436dd16653b01fa5834f573b0aa6954744a30 (diff) | |
download | scummvm-rg350-ff8e4a4410eb28690d7b220a99ee47f1e672d71a.tar.gz scummvm-rg350-ff8e4a4410eb28690d7b220a99ee47f1e672d71a.tar.bz2 scummvm-rg350-ff8e4a4410eb28690d7b220a99ee47f1e672d71a.zip |
TUCKER: Fix walking Royston glitch
Fixes Trac#6640.
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r-- | engines/tucker/tucker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index cb3dd8e6f1..85499b08e5 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -1941,12 +1941,12 @@ void TuckerEngine::drawSprite(int num) { int srcH = READ_LE_UINT16(p + frameOffset + 2); int srcX = READ_LE_UINT16(p + frameOffset + 8); int srcY = READ_LE_UINT16(p + frameOffset + 10); + s->_gfxBackgroundOffset += s->_backgroundOffset; int xPos = s->_gfxBackgroundOffset + srcX; if (xPos < 600 && (_scrollOffset + 320 < xPos || _scrollOffset - srcW > xPos)) { return; } s->_xSource = srcX; - s->_gfxBackgroundOffset += s->_backgroundOffset; uint8 *dstPtr = _locationBackgroundGfxBuf + srcY * 640 + xPos; const uint8 *srcPtr = p + frameOffset + 12; switch (s->_colorType) { |