aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2006-09-03 05:02:25 +0000
committerPaul Gilbert2006-09-03 05:02:25 +0000
commit037f04325dd46baf05fbb3f44dcd6c88f1e0136a (patch)
tree718bd7dfdde26e1ba224f2ff7864a646f19bfae7 /engines/lure
parente1ea1b90a2fa9531738938f2ab56bff1af4b9aec (diff)
downloadscummvm-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.cpp4
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);