diff options
author | Paul Gilbert | 2008-01-10 13:37:34 +0000 |
---|---|---|
committer | Paul Gilbert | 2008-01-10 13:37:34 +0000 |
commit | d804bad5512577b2a268f8985422038eb5d3927d (patch) | |
tree | 949ceec06a093ab2575b9254e17868c988dafd5e /engines/lure/res.cpp | |
parent | 286a3da49b60974793add684226884ba2db3bcbc (diff) | |
download | scummvm-rg350-d804bad5512577b2a268f8985422038eb5d3927d.tar.gz scummvm-rg350-d804bad5512577b2a268f8985422038eb5d3927d.tar.bz2 scummvm-rg350-d804bad5512577b2a268f8985422038eb5d3927d.zip |
Replaced the Blacksmith hack with an NPC Schedules list that stores the active schedule of an NPC when it's deactivated in case it's later reactivated again.
svn-id: r30378
Diffstat (limited to 'engines/lure/res.cpp')
-rw-r--r-- | engines/lure/res.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp index fd6fe357aa..a3eb33660d 100644 --- a/engines/lure/res.cpp +++ b/engines/lure/res.cpp @@ -98,6 +98,7 @@ void Resources::reset() { _fieldList.reset(); _barmanLists.reset(); + _hotspotSchedules.clear(); _talkState = TALK_NONE; _activeTalkData = NULL; @@ -732,6 +733,7 @@ void Resources::saveToStream(Common::WriteStream *stream) { // Save sublist data _hotspotData.saveToStream(stream); _activeHotspots.saveToStream(stream); + _hotspotSchedules.saveToStream(stream); _fieldList.saveToStream(stream); _randomActions.saveToStream(stream); _barmanLists.saveToStream(stream); @@ -757,6 +759,13 @@ void Resources::loadFromStream(Common::ReadStream *stream) { _hotspotData.loadFromStream(stream); debugC(ERROR_DETAILED, kLureDebugScripts, "Loading active hotspots"); _activeHotspots.loadFromStream(stream); + + _hotspotSchedules.clear(); + if (saveVersion >= 31) { + _hotspotSchedules.loadFromStream(stream); + debugC(ERROR_DETAILED, kLureDebugScripts, "Loading hotspot schedules"); + } + debugC(ERROR_DETAILED, kLureDebugScripts, "Loading fields"); _fieldList.loadFromStream(stream); debugC(ERROR_DETAILED, kLureDebugScripts, "Loading random actions"); |