diff options
| author | Sylvain Dupont | 2011-01-26 00:21:54 +0000 | 
|---|---|---|
| committer | Sylvain Dupont | 2011-01-26 00:21:54 +0000 | 
| commit | 177b656edfc04ad2f681b49487382afb8881fff2 (patch) | |
| tree | 485949a2f4c951ff7c26bf357546ee62c3fd0628 /engines/hugo/file.cpp | |
| parent | fec516e2b05a85ea55922b72749e0c7c7e8f9a9d (diff) | |
| download | scummvm-rg350-177b656edfc04ad2f681b49487382afb8881fff2.tar.gz scummvm-rg350-177b656edfc04ad2f681b49487382afb8881fff2.tar.bz2 scummvm-rg350-177b656edfc04ad2f681b49487382afb8881fff2.zip | |
HUGO: Fix some save/restore issues
Invalidates current savegames! (now version 3)
svn-id: r55540
Diffstat (limited to 'engines/hugo/file.cpp')
| -rw-r--r-- | engines/hugo/file.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index effa00001b..dcd84d7d04 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -390,6 +390,9 @@ bool FileManager::saveGame(int16 slot, Common::String descrip) {  	// Now save current time and all current events in event queue  	_vm->_scheduler->saveEvents(out); +	// Now save current actions +	_vm->_scheduler->saveActions(out); +  	// Save palette table  	_vm->_screen->savePal(out); @@ -495,6 +498,9 @@ bool FileManager::restoreGame(int16 slot) {  	// Now restore time of the save and the event queue  	_vm->_scheduler->restoreEvents(in); +	// Now restore actions +	_vm->_scheduler->restoreActions(in); +  	// Restore palette and change it if necessary  	_vm->_screen->restorePal(in); | 
