From 75e87b4c8b2d119b87faf10df4524e1b2498a3a2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 28 May 2007 11:38:10 +0000 Subject: Added saving of scheduled scripts, and set script activation times to match original game svn-id: r26993 --- engines/lure/res.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/lure') 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"); } -- cgit v1.2.3