diff options
author | Sven Hesse | 2012-01-28 18:03:00 +0100 |
---|---|---|
committer | Sven Hesse | 2012-01-28 18:03:00 +0100 |
commit | 60306c40ac8ec733fb7ec45ea61f91de245ab02e (patch) | |
tree | c11fbf714bb8da2e96cc29940764383614b1f8fa /engines/gob/minigames/geisha/diving.cpp | |
parent | 7650fca0405f62e62bdf81cb9f2acd8e7f14ca69 (diff) | |
download | scummvm-rg350-60306c40ac8ec733fb7ec45ea61f91de245ab02e.tar.gz scummvm-rg350-60306c40ac8ec733fb7ec45ea61f91de245ab02e.tar.bz2 scummvm-rg350-60306c40ac8ec733fb7ec45ea61f91de245ab02e.zip |
GOB: If there's no air left, Oko dies
Diffstat (limited to 'engines/gob/minigames/geisha/diving.cpp')
-rw-r--r-- | engines/gob/minigames/geisha/diving.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/minigames/geisha/diving.cpp b/engines/gob/minigames/geisha/diving.cpp index bd87be8e7f..0a43f96be9 100644 --- a/engines/gob/minigames/geisha/diving.cpp +++ b/engines/gob/minigames/geisha/diving.cpp @@ -410,6 +410,9 @@ void Diving::updateAirMeter() { if (_airCycle == 0) _airMeter->decrease(); + + if (_airMeter->getValue() == 0) + _oko->die(); } void Diving::updateEvilFish() { |