From 4daf3e4ea544a5c087bd42eac5c15a5d916ed82f Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Mon, 22 Jan 2018 01:22:50 +0100 Subject: TUCKER: Fix bubbles in Plugs shop Fixes Trac#6641. --- engines/tucker/locations.cpp | 9 ++++++--- engines/tucker/tucker.h | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index 1a727900be..5131b85896 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -972,9 +972,12 @@ void TuckerEngine::updateSprite_locationNum14(int i) { } void TuckerEngine::execData3PreUpdate_locationNum14() { - if (_yPosCurrent >= 127) - return; + if (_yPosCurrent >= 127) { + execData3Update_locationNum14(); + } +} +void TuckerEngine::execData3Update_locationNum14() { if (!isSoundPlaying(0)) { int num = -1; const int i = getRandomNumber(); @@ -1058,7 +1061,7 @@ void TuckerEngine::execData3PreUpdate_locationNum14Helper2(int i) { void TuckerEngine::execData3PostUpdate_locationNum14() { if (_yPosCurrent < 127) { - execData3PreUpdate_locationNum14(); + execData3Update_locationNum14(); } } diff --git a/engines/tucker/tucker.h b/engines/tucker/tucker.h index 1be4682508..60468046e3 100644 --- a/engines/tucker/tucker.h +++ b/engines/tucker/tucker.h @@ -440,6 +440,7 @@ protected: void updateSprite_locationNum13(int i); void execData3PreUpdate_locationNum13(); void updateSprite_locationNum14(int i); + void execData3Update_locationNum14(); void execData3PreUpdate_locationNum14(); void execData3PreUpdate_locationNum14Helper1(int i); void execData3PreUpdate_locationNum14Helper2(int i); -- cgit v1.2.3