aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-09-06 20:50:34 +1000
committerPaul Gilbert2011-09-06 20:50:34 +1000
commitd43fbc8dfa0bf416cdba545525e67be9e5e2c46b (patch)
tree7c6ed85a694896e63271457855edd20fc411306b
parentedeff6c84931b8f7ec8b1fedfec8aaec3ecc6a3a (diff)
downloadscummvm-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.cpp12
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) {