aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tucker/locations.cpp9
-rw-r--r--engines/tucker/tucker.h1
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);