diff options
author | Paul Gilbert | 2007-05-28 11:38:10 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-05-28 11:38:10 +0000 |
commit | 75e87b4c8b2d119b87faf10df4524e1b2498a3a2 (patch) | |
tree | 437922ca2e2d43490b2a0af341b2df5fffe1b1bc /engines/lure | |
parent | 5e0fd79a5ae5655360124715edc06c7cd65a0b8a (diff) | |
download | scummvm-rg350-75e87b4c8b2d119b87faf10df4524e1b2498a3a2.tar.gz scummvm-rg350-75e87b4c8b2d119b87faf10df4524e1b2498a3a2.tar.bz2 scummvm-rg350-75e87b4c8b2d119b87faf10df4524e1b2498a3a2.zip |
Added saving of scheduled scripts, and set script activation times to match original game
svn-id: r26993
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/res.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp index 5782ccdecb..8b93951e75 100644 --- a/engines/lure/res.cpp +++ b/engines/lure/res.cpp @@ -315,7 +315,7 @@ void Resources::reloadData() { delete mb; // Initialise delay list - _delayList.clear(); + _delayList.clear(true); // Load miscellaneous data _cursors = d.getEntry(CURSOR_RESOURCE_ID); @@ -651,6 +651,7 @@ void Resources::saveToStream(Common::WriteStream *stream) _barmanLists.saveToStream(stream); _exitJoins.saveToStream(stream); _roomData.saveToStream(stream); + _delayList.saveToStream(stream); } void Resources::loadFromStream(Common::ReadStream *stream) { @@ -668,6 +669,8 @@ void Resources::loadFromStream(Common::ReadStream *stream) { _exitJoins.loadFromStream(stream); debugC(ERROR_DETAILED, kLureDebugScripts, "Loading walkable paths"); _roomData.loadFromStream(stream); + debugC(ERROR_DETAILED, kLureDebugScripts, "Loading delay list"); + _delayList.loadFromStream(stream); debugC(ERROR_DETAILED, kLureDebugScripts, "Finished loading"); } |