aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-05-01 20:36:06 +1000
committerPaul Gilbert2011-05-01 20:38:24 +1000
commit77161e231a047da4e9f9dc5912bed28729e8d87d (patch)
tree43750ae78286bdbe50154820f4c5f140552937dd /engines
parent831f974cb42c5993ec66d785858e5bd962f2b864 (diff)
downloadscummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.tar.gz
scummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.tar.bz2
scummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.zip
TSAGE: Fixed NamedHotspot fields to be synchronised to savegames
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/core.cpp7
-rw-r--r--engines/tsage/core.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 3196499fa1..c1f188750d 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -1593,6 +1593,13 @@ void NamedHotspot::setup(const int ys, const int xe, const int ye, const int xs,
_globals->_sceneItems.addItems(this, NULL);
}
+void NamedHotspot::synchronise(Serialiser &s) {
+ SceneHotspot::synchronise(s);
+ s.syncAsSint16LE(_resnum);
+ s.syncAsSint16LE(_lookLineNum);
+ s.syncAsSint16LE(_useLineNum);
+}
+
/*--------------------------------------------------------------------------*/
void SceneObjectWrapper::setSceneObject(SceneObject *so) {
diff --git a/engines/tsage/core.h b/engines/tsage/core.h
index 868649fce8..c836264dea 100644
--- a/engines/tsage/core.h
+++ b/engines/tsage/core.h
@@ -435,6 +435,7 @@ public:
void setup(const int ys, const int xe, const int ye, const int xs, const int resnum, const int lookLineNum, const int useLineNum);
virtual void doAction(int action);
virtual Common::String getClassName() { return "NamedHotspot"; }
+ virtual void synchronise(Serialiser &s);
};
enum AnimateMode {ANIM_MODE_NONE = 0, ANIM_MODE_1 = 1, ANIM_MODE_2 = 2, ANIM_MODE_3 = 3,