From c0d0792ccf346270f4def39182748e4c9f3def3d Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 28 Jan 2012 19:55:55 +0100 Subject: GOB: End the Diving minigame when Oko is dead --- engines/gob/minigames/geisha/diving.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- cgit v1.2.3