diff options
author | Paul Gilbert | 2006-09-03 05:02:25 +0000 |
---|---|---|
committer | Paul Gilbert | 2006-09-03 05:02:25 +0000 |
commit | 037f04325dd46baf05fbb3f44dcd6c88f1e0136a (patch) | |
tree | 718bd7dfdde26e1ba224f2ff7864a646f19bfae7 /engines/lure | |
parent | e1ea1b90a2fa9531738938f2ab56bff1af4b9aec (diff) | |
download | scummvm-rg350-037f04325dd46baf05fbb3f44dcd6c88f1e0136a.tar.gz scummvm-rg350-037f04325dd46baf05fbb3f44dcd6c88f1e0136a.tar.bz2 scummvm-rg350-037f04325dd46baf05fbb3f44dcd6c88f1e0136a.zip |
Added code fragment to mark a room as found when the player enters it
svn-id: r23822
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 39b54a7d9a..8e3d70e968 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -250,6 +250,10 @@ void Game::playerChangeRoom() { Point &newPos = fields.playerNewPos().position; delayList.clear(); + RoomData *roomData = res.getRoom(roomNum); + assert(roomData); + roomData->flags |= HOTSPOTFLAG_FOUND; + Hotspot *player = res.getActiveHotspot(PLAYER_ID); player->currentActions().clear(); player->setRoomNumber(roomNum); |