TSAGE: Fixed NamedHotspot fields to be synchronised to savegames

This commit is contained in:
Paul Gilbert 2011-05-01 20:36:06 +10:00
parent 831f974cb4
commit 77161e231a
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -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,