aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2009-01-03 11:35:00 +0000
committerPaul Gilbert2009-01-03 11:35:00 +0000
commitb3a7e537944f6b26bd4d4e1676bd1bc2ca20efd9 (patch)
treeeb23ce951d248e01e19c5e50b657d702a8dab216 /engines/lure/res.cpp
parent0a8541cc0a6c6b6432fb80dc463e145435b0e972 (diff)
downloadscummvm-rg350-b3a7e537944f6b26bd4d4e1676bd1bc2ca20efd9.tar.gz
scummvm-rg350-b3a7e537944f6b26bd4d4e1676bd1bc2ca20efd9.tar.bz2
scummvm-rg350-b3a7e537944f6b26bd4d4e1676bd1bc2ca20efd9.zip
Bugfix for #2480853 - Skorl doesn't follow Minnow into Cellar
svn-id: r35695
Diffstat (limited to 'engines/lure/res.cpp')
-rw-r--r--engines/lure/res.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp
index 2d69c9e931..95cb0a2f1b 100644
--- a/engines/lure/res.cpp
+++ b/engines/lure/res.cpp
@@ -620,6 +620,9 @@ Hotspot *Resources::activateHotspot(uint16 hotspotId) {
// Special post-load handling
if (res->loadOffset == 3) hotspot->setPersistant(true);
if (res->loadOffset == 5) hotspot->handleTalkDialog();
+ if (hotspotId == CASTLE_SKORL_ID)
+ // The Castle skorl has a default room #99, so it needs to be adjusted dynamically
+ res->npcSchedule.top().setRoomNumber(res->roomNumber);
// TODO: Figure out why there's a room set in the animation decode for a range of characters,
// particularly since it doesn't seem to match what happens in-game