diff options
author | Sven Hesse | 2011-09-14 22:49:39 +0200 |
---|---|---|
committer | Sven Hesse | 2011-09-15 21:24:08 +0200 |
commit | 3fe3a4928349c67b36c05ab15be70c582b516a88 (patch) | |
tree | 551d2de8c0bc7441711beaa6bd46ca451ed0b754 /engines/gob/minigames/geisha | |
parent | d7ae191b82047463e5baf7208f893976c3943a4b (diff) | |
download | scummvm-rg350-3fe3a4928349c67b36c05ab15be70c582b516a88.tar.gz scummvm-rg350-3fe3a4928349c67b36c05ab15be70c582b516a88.tar.bz2 scummvm-rg350-3fe3a4928349c67b36c05ab15be70c582b516a88.zip |
GOB: Make sure that the evil fish don't drift up/down
Diffstat (limited to 'engines/gob/minigames/geisha')
-rw-r--r-- | engines/gob/minigames/geisha/evilfish.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gob/minigames/geisha/evilfish.cpp b/engines/gob/minigames/geisha/evilfish.cpp index 592e84a32c..e9503f4aed 100644 --- a/engines/gob/minigames/geisha/evilfish.cpp +++ b/engines/gob/minigames/geisha/evilfish.cpp @@ -94,6 +94,9 @@ void EvilFish::advance() { bool wasLastFrame = lastFrame(); + int16 oldX, oldY; + getPosition(oldX, oldY); + ANIObject::advance(); int16 x, y, width, height; @@ -107,7 +110,7 @@ void EvilFish::advance() { case kStateSwimLeft: if (!_shouldLeave && (x >= _screenWidth - width)) { setAnimation(_animTurnRight); - setPosition(x, y); + setPosition(x, oldY); _state = kStateTurnRight; } @@ -122,7 +125,7 @@ void EvilFish::advance() { case kStateSwimRight: if (!_shouldLeave && (x <= 0)) { setAnimation(_animTurnLeft); - setPosition(x, y); + setPosition(x, oldY); _state = kStateTurnLeft; } |