TSAGE: BF - Fix savegame issue in Scene840

This commit is contained in:
Strangerke 2013-11-26 08:15:33 +01:00
parent a8e49412cc
commit c981b4f1cd
2 changed files with 10 additions and 0 deletions

View File

@ -2096,6 +2096,15 @@ bool Scene840::BoatKeysInset::WaveKeys::startAction(CursorType action, Event &ev
}
}
void Scene840::BoatKeysInset::synchronize(Serializer &s) {
FocusObject::synchronize(s);
if (s.getVersion() >= 12) {
s.syncAsSint16LE(_usedWaveKeys);
s.syncAsSint16LE(_usedRentalKeys);
}
}
bool Scene840::BoatKeys::startAction(CursorType action, Event &event) {
Scene840 *scene = (Scene840 *)BF_GLOBALS._sceneManager._scene;

View File

@ -350,6 +350,7 @@ class Scene840: public PalettedScene {
WaveKeys _waveKeys;
bool _usedRentalKeys,_usedWaveKeys;
virtual void synchronize(Serializer &s);
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void remove();
virtual void process(Event &event);