From 0bffd77dfefc33d5c6490383751f366f1b7ee0ed Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 17 Feb 2011 18:43:20 +0100 Subject: [PATCH] TUCKER: fix #3106766 - Bubbles in Plugs Shop too heavy --- engines/tucker/locations.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index d99208edc030..416f2ba36e4b 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -974,7 +974,7 @@ void TuckerEngine::updateSprite_locationNum14(int i) { } void TuckerEngine::execData3PreUpdate_locationNum14() { - if (_yPosCurrent >= 126) + if (_yPosCurrent >= 127) return; if (!isSoundPlaying(0)) { @@ -1021,7 +1021,7 @@ void TuckerEngine::execData3PreUpdate_locationNum14() { } void TuckerEngine::execData3PreUpdate_locationNum14Helper1(int i) { - const int y = 1872; // FIXME: bug, 187/182 ? + const int y = 117 * 16; if (_updateLocation14ObjNum[i] == 0) { if (getRandomNumber() <= 30000) { return; @@ -1031,9 +1031,8 @@ void TuckerEngine::execData3PreUpdate_locationNum14Helper1(int i) { _updateLocation14Step[i] = -55 - getRandomNumber() / 512; _updateLocation14ObjNum[i] = 231; _updateLocation14Delay[i] = 16 + getRandomNumber() / 2048; - // FIXME: bug, missing return ? } - _updateLocation14Step[i] = 4; + _updateLocation14Step[i] += 4; _updateLocationYPosTable2[i] += _updateLocation14Step[i]; if (_updateLocationYPosTable2[i] > y) { _updateLocationYPosTable2[i] = y;