Skip to content

Commit

Permalink
TUCKER: fix #3106536 - Punk stuck (moving in background)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyxx committed Feb 18, 2011
1 parent a0d74d0 commit 3557ff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/tucker/locations.cpp
Expand Up @@ -676,7 +676,7 @@ void TuckerEngine::execData3PostUpdate_locationNum8() {

void TuckerEngine::updateSprite_locationNum9_0(int i) {
if (_charSpeechSoundCounter > 0 && _actionCharacterNum == 0) {
_spritesTable[0].needUpdate = 1;
_spritesTable[i].needUpdate = 1;
_spritesTable[i].state = 3;
} else if (_updateLocationCounter2 > 0 || getRandomNumber() > 30000) {
_spritesTable[i].state = 1;
Expand Down
4 changes: 3 additions & 1 deletion engines/tucker/tucker.cpp
Expand Up @@ -1921,7 +1921,9 @@ void TuckerEngine::drawSprite(int num) {
Graphics::decodeRLE_248(dstPtr, srcPtr, srcW, srcH, 0, s->yMaxBackground, s->flipX != 0);
break;
}
addDirtyRect(xPos, srcY, srcW, srcH);
const int xR = srcX + (s->gfxBackgroundOffset % 640);
const int yR = srcY + (s->gfxBackgroundOffset / 640);
addDirtyRect(xR, yR, srcW, srcH);
}
}

Expand Down

0 comments on commit 3557ff5

Please sign in to comment.