diff options
author | Paul Gilbert | 2011-05-01 20:36:06 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-05-01 20:38:24 +1000 |
commit | 77161e231a047da4e9f9dc5912bed28729e8d87d (patch) | |
tree | 43750ae78286bdbe50154820f4c5f140552937dd | |
parent | 831f974cb42c5993ec66d785858e5bd962f2b864 (diff) | |
download | scummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.tar.gz scummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.tar.bz2 scummvm-rg350-77161e231a047da4e9f9dc5912bed28729e8d87d.zip |
TSAGE: Fixed NamedHotspot fields to be synchronised to savegames
-rw-r--r-- | engines/tsage/core.cpp | 7 | ||||
-rw-r--r-- | engines/tsage/core.h | 1 |
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, |