aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/tucker.cpp
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-02-09 22:52:34 +0100
committerAdrian Frühwirth2018-02-09 22:52:34 +0100
commit7ad8fe46106327b5464235ec0c75d1c770be519e (patch)
treea79c3a7fc9a7e87efb7cd211759a897cb5b9c9bb /engines/tucker/tucker.cpp
parent32361224650d56d31b28b1468d73d0c1c49f12c5 (diff)
downloadscummvm-rg350-7ad8fe46106327b5464235ec0c75d1c770be519e.tar.gz
scummvm-rg350-7ad8fe46106327b5464235ec0c75d1c770be519e.tar.bz2
scummvm-rg350-7ad8fe46106327b5464235ec0c75d1c770be519e.zip
TUCKER: Fix Bud drawn behind parts of statue in park
Fixes Trac#10423.
Diffstat (limited to 'engines/tucker/tucker.cpp')
-rw-r--r--engines/tucker/tucker.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index 06c736899f..5e14f71b68 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -1809,12 +1809,16 @@ void TuckerEngine::drawBackgroundSprites() {
}
void TuckerEngine::drawCurrentSprite() {
- // Workaround original game glitch: skip first bud frame drawing when entering location (tracker item #2597763)
+ // WORKAROUND: original game glitch
+ // Skip first Bud frame drawing when entering location
+ // Fixes SF#2597763
if ((_locationNum == 17 || _locationNum == 18) && _currentSpriteAnimationFrame == 16) {
return;
}
- // Workaround original game glitch: location 14 contains some colors from [0xE0-0xF8] in a walkable area (tracker item #3106542)
- const bool color248Only = (_locationNum == 14);
+ // WORKAROUND: original game glitch
+ // Locations 14 and 61 contain some colors from [0xE0-0xF8] in a walkable area
+ // Fixes SF#3106542 and Trac#10423
+ const bool color248Only = (_locationNum == 14 || _locationNum == 61);
SpriteFrame *chr = &_spriteFramesTable[_currentSpriteAnimationFrame];
int yPos = _yPosCurrent + _mainSpritesBaseOffset - 54 + chr->_yOffset;
int xPos = _xPosCurrent;