From bc9df7e5c983af70d61877e8c023e57024c47c26 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 1 Feb 2007 04:41:36 +0000 Subject: Added custom load code for room #20 Notice svn-id: r25317 --- engines/lure/res.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines') diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp index 819a1eacea..726c754eec 100644 --- a/engines/lure/res.cpp +++ b/engines/lure/res.cpp @@ -472,6 +472,7 @@ Hotspot *Resources::activateHotspot(uint16 hotspotId) { } else { // Standard load bool loadFlag = true; + uint16 talkIndex; switch (res->loadOffset) { case 0x3afe: @@ -491,6 +492,17 @@ Hotspot *Resources::activateHotspot(uint16 hotspotId) { // Standard animation load break; + case 0x8617: + // Custom loader used by the notice hotspot 42ah in room #20 + talkIndex = _fieldList.getField(TALK_INDEX); + if ((talkIndex < 8) || (talkIndex >= 14)) + // Don't load hotspot + loadFlag = false; + else + // Make the notice be on-screen + res->startY = 85; + break; + case 0x88ac: // Torch in room #1 loadFlag = _fieldList.getField(TORCH_HIDE) == 0; @@ -506,6 +518,7 @@ Hotspot *Resources::activateHotspot(uint16 hotspotId) { Hotspot *hotspot = addHotspot(hotspotId); assert(hotspot); if (res->loadOffset == 0x7167) hotspot->setPersistant(true); + if (res->loadOffset == 0x8617) hotspot->handleTalkDialog(); return hotspot; } } -- cgit v1.2.3