aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/minigames/geisha/oko.cpp
diff options
context:
space:
mode:
authorSven Hesse2012-01-28 17:46:04 +0100
committerSven Hesse2012-01-28 17:46:38 +0100
commit7650fca0405f62e62bdf81cb9f2acd8e7f14ca69 (patch)
tree2f991030d6450d63072d86d63a2193a92ac2297f /engines/gob/minigames/geisha/oko.cpp
parent9dd703532706c049b14b4bc1e239c9cd08366f2a (diff)
downloadscummvm-rg350-7650fca0405f62e62bdf81cb9f2acd8e7f14ca69.tar.gz
scummvm-rg350-7650fca0405f62e62bdf81cb9f2acd8e7f14ca69.tar.bz2
scummvm-rg350-7650fca0405f62e62bdf81cb9f2acd8e7f14ca69.zip
GOB: Air gets used up and is refilled by breathing
Diffstat (limited to 'engines/gob/minigames/geisha/oko.cpp')
-rw-r--r--engines/gob/minigames/geisha/oko.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/minigames/geisha/oko.cpp b/engines/gob/minigames/geisha/oko.cpp
index 5da1947acf..23f460fdba 100644
--- a/engines/gob/minigames/geisha/oko.cpp
+++ b/engines/gob/minigames/geisha/oko.cpp
@@ -131,8 +131,8 @@ Oko::State Oko::getState() const {
return _state;
}
-bool Oko::isAtBottom() const {
- return _level >= (kLevelCount - 1);
+bool Oko::isBreathing() const {
+ return (_state == kStateBreathe) && ((getFrame() >= 9) && (getFrame() <= 30));
}
} // End of namespace Geisha