diff options
author | Joseph-Eugene Winzer | 2017-09-01 15:21:42 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:31 +0000 |
commit | 7da494427dfb18e05205dcc38150fb96aafa5061 (patch) | |
tree | 45c5be8e7026d7f93033c8ca6b31a4937af73e3a /engines | |
parent | 03414f789a022ef6f665a2cece026250d963e30a (diff) | |
download | scummvm-rg350-7da494427dfb18e05205dcc38150fb96aafa5061.tar.gz scummvm-rg350-7da494427dfb18e05205dcc38150fb96aafa5061.tar.bz2 scummvm-rg350-7da494427dfb18e05205dcc38150fb96aafa5061.zip |
SUPERNOVA: Adds current room to save file
and restores player location to it on load.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index fa351a071d..b562ead082 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -66,6 +66,7 @@ bool GameManager::serialize(Common::WriteStream *out) { } // Rooms + out->writeByte(_currentRoom->getId()); for (int i = 0; i < NUMROOMS; ++i) { _rooms[i]->serialize(out); } @@ -112,6 +113,7 @@ bool GameManager::deserialize(Common::ReadStream *in) { } // Rooms + _currentRoom = _rooms[static_cast<RoomID>(in->readByte())]; for (int i = 0; i < NUMROOMS; ++i) { _rooms[i]->deserialize(in); } |