diff options
author | Sven Hesse | 2012-01-27 15:07:26 +0100 |
---|---|---|
committer | Sven Hesse | 2012-01-27 15:07:26 +0100 |
commit | 0fd9abfe01d517c12b6855b6777a7e062ec1cc78 (patch) | |
tree | 1920164ff1789ef7b0fd7c0d04b63b6c44c3f092 /engines/gob/minigames/geisha/diving.cpp | |
parent | cf45f49f72dba59c94ac4d2c0e1bcbebf1482b8f (diff) | |
download | scummvm-rg350-0fd9abfe01d517c12b6855b6777a7e062ec1cc78.tar.gz scummvm-rg350-0fd9abfe01d517c12b6855b6777a7e062ec1cc78.tar.bz2 scummvm-rg350-0fd9abfe01d517c12b6855b6777a7e062ec1cc78.zip |
GOB: Play the correct animation when Oko's picking up pearls
Diffstat (limited to 'engines/gob/minigames/geisha/diving.cpp')
-rw-r--r-- | engines/gob/minigames/geisha/diving.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/minigames/geisha/diving.cpp b/engines/gob/minigames/geisha/diving.cpp index d59d3430ad..4b08a21fb4 100644 --- a/engines/gob/minigames/geisha/diving.cpp +++ b/engines/gob/minigames/geisha/diving.cpp @@ -121,10 +121,10 @@ bool Diving::play(uint16 playerCount, bool hasPearlLocation) { shoot(mouseX, mouseY); if (key == kKeyDown) { - if (_oko->isAtBottom()) + _oko->sink(); + if ((_oko->getState() == Oko::kStatePick) && (_oko->getFrame() == 0)) getPearl(); - _oko->sink(); } else if (key == kKeyUp) _oko->raise(); |