From d43fbc8dfa0bf416cdba545525e67be9e5e2c46b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 6 Sep 2011 20:50:34 +1000 Subject: TSAGE: Fixed problem with NamedHotspot items not getting added to scenes --- engines/tsage/core.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines') diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index ad082d6f1b..21d5390f62 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -1768,6 +1768,18 @@ void NamedHotspot::setup(int sceneRegionId, int resNum, int lookLineNum, int tal _lookLineNum = lookLineNum; _talkLineNum = talkLineNum; _useLineNum = useLineNum; + + // Handle adding hotspot to scene items list as necessary + switch (mode) { + case 2: + GLOBALS._sceneItems.push_front(this); + break; + case 3: + break; + default: + GLOBALS._sceneItems.push_back(this); + break; + } } void NamedHotspot::synchronize(Serializer &s) { -- cgit v1.2.3