TSAGE: Fixed problem with NamedHotspot items not getting added to scenes

This commit is contained in:
Paul Gilbert 2011-09-06 20:50:34 +10:00
parent edeff6c849
commit d43fbc8dfa

View file

@ -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) {