diff options
author | Paul Gilbert | 2011-09-06 20:50:34 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-09-06 20:50:34 +1000 |
commit | d43fbc8dfa0bf416cdba545525e67be9e5e2c46b (patch) | |
tree | 7c6ed85a694896e63271457855edd20fc411306b | |
parent | edeff6c84931b8f7ec8b1fedfec8aaec3ecc6a3a (diff) | |
download | scummvm-rg350-d43fbc8dfa0bf416cdba545525e67be9e5e2c46b.tar.gz scummvm-rg350-d43fbc8dfa0bf416cdba545525e67be9e5e2c46b.tar.bz2 scummvm-rg350-d43fbc8dfa0bf416cdba545525e67be9e5e2c46b.zip |
TSAGE: Fixed problem with NamedHotspot items not getting added to scenes
-rw-r--r-- | engines/tsage/core.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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) { |