TUCKER: Fix bubbles in Plugs shop

Fixes Trac#6641.
This commit is contained in:
Adrian Frühwirth 2018-01-22 01:22:50 +01:00 committed by Eugene Sandulenko
parent 3c37c42bd0
commit 4daf3e4ea5
2 changed files with 7 additions and 3 deletions

View File

@ -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();
}
}

View File

@ -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);