aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2012-01-28 19:55:55 +0100
committerSven Hesse2012-01-28 19:55:55 +0100
commitc0d0792ccf346270f4def39182748e4c9f3def3d (patch)
tree2d11b0b21e6dbb884f14b6da29cd766cd32722db /engines/gob
parent4b60a761a0ec5694178ac236e24136823d8907d9 (diff)
downloadscummvm-rg350-c0d0792ccf346270f4def39182748e4c9f3def3d.tar.gz
scummvm-rg350-c0d0792ccf346270f4def39182748e4c9f3def3d.tar.bz2
scummvm-rg350-c0d0792ccf346270f4def39182748e4c9f3def3d.zip
GOB: End the Diving minigame when Oko is dead
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/minigames/geisha/diving.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/minigames/geisha/diving.cpp b/engines/gob/minigames/geisha/diving.cpp
index d94ce0838c..6b891b4c31 100644
--- a/engines/gob/minigames/geisha/diving.cpp
+++ b/engines/gob/minigames/geisha/diving.cpp
@@ -128,6 +128,10 @@ bool Diving::play(uint16 playerCount, bool hasPearlLocation) {
checkShots();
checkOkoHurt();
+ // Is Oko dead?
+ if (_oko->isPaused())
+ break;
+
updateAirMeter();
updateEvilFish();
updateDecorFish();