mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
TSAGE: Fixed NamedHotspot fields to be synchronised to savegames
This commit is contained in:
parent
831f974cb4
commit
77161e231a
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user