diff options
author | Adrian Frühwirth | 2018-01-22 01:22:50 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-01-31 19:06:57 +0100 |
commit | 4daf3e4ea544a5c087bd42eac5c15a5d916ed82f (patch) | |
tree | 76770e448f999747ee3dab57f3678530a75aa288 /engines | |
parent | 3c37c42bd08b8c220b17de75a3f3370e7e3474c4 (diff) | |
download | scummvm-rg350-4daf3e4ea544a5c087bd42eac5c15a5d916ed82f.tar.gz scummvm-rg350-4daf3e4ea544a5c087bd42eac5c15a5d916ed82f.tar.bz2 scummvm-rg350-4daf3e4ea544a5c087bd42eac5c15a5d916ed82f.zip |
TUCKER: Fix bubbles in Plugs shop
Fixes Trac#6641.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tucker/locations.cpp | 9 | ||||
-rw-r--r-- | 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); |