aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/minigames/geisha
diff options
context:
space:
mode:
authorSven Hesse2012-01-28 22:29:19 +0100
committerSven Hesse2012-01-28 22:29:19 +0100
commit0627a4244d6af625569df0445108a9c0056ca833 (patch)
treeeacfa1d22c53cea27dc49ec5d962e17d368baf5a /engines/gob/minigames/geisha
parent9fba98415de3fe4bd0549075eed9f7b42400f8c5 (diff)
downloadscummvm-rg350-0627a4244d6af625569df0445108a9c0056ca833.tar.gz
scummvm-rg350-0627a4244d6af625569df0445108a9c0056ca833.tar.bz2
scummvm-rg350-0627a4244d6af625569df0445108a9c0056ca833.zip
GOB: Play the lungs animation when breathing
Diffstat (limited to 'engines/gob/minigames/geisha')
-rw-r--r--engines/gob/minigames/geisha/diving.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/minigames/geisha/diving.cpp b/engines/gob/minigames/geisha/diving.cpp
index 12571be7ff..75e63118e2 100644
--- a/engines/gob/minigames/geisha/diving.cpp
+++ b/engines/gob/minigames/geisha/diving.cpp
@@ -431,8 +431,10 @@ void Diving::updateAirMeter() {
if (_oko->isBreathing()) {
_airCycle = 0;
_airMeter->increase();
+ _lungs->setPause(false);
return;
- }
+ } else
+ _lungs->setPause(true);
_airCycle = (_airCycle + 1) % kAirDecreaseRate;