diff options
author | Paul Gilbert | 2007-05-07 12:17:24 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-05-07 12:17:24 +0000 |
commit | 9631586ce822e8c79a9ba3654feeeb70e2cd4808 (patch) | |
tree | 82bb79c71d3519286d352f4178ffd2230bd030bc /engines | |
parent | 6a7b74d99dd97480b0fc4b95ee7cfeadb12bd0ea (diff) | |
download | scummvm-rg350-9631586ce822e8c79a9ba3654feeeb70e2cd4808.tar.gz scummvm-rg350-9631586ce822e8c79a9ba3654feeeb70e2cd4808.tar.bz2 scummvm-rg350-9631586ce822e8c79a9ba3654feeeb70e2cd4808.zip |
Added code responsible for transforming the player back from Selena
svn-id: r26778
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lure/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 6a2ebedcf2..62425ae926 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -282,6 +282,17 @@ void Game::playerChangeRoom() { player->setPosition(newPos.x, newPos.y); player->setOccupied(true); room.setRoomNumber(roomNum, false); + + // Special check for change back from Selena + if ((roomNum != 31) && (roomNum != 14) && (fields.getField(74) != 0)) { + uint16 v = fields.getField(29); + if (v != 0) { + --v; + fields.setField(29, v); + if (v == 0) + res.delayList().add(2, 0xCB7, true); + } + } } void Game::displayChuteAnimation() |