aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/advsys/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/advsys/game.cpp')
-rw-r--r--engines/glk/advsys/game.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/glk/advsys/game.cpp b/engines/glk/advsys/game.cpp
index 938c85fe51..a20178d9e2 100644
--- a/engines/glk/advsys/game.cpp
+++ b/engines/glk/advsys/game.cpp
@@ -142,6 +142,13 @@ void Game::restart(Common::SeekableReadStream& s) {
decrypt(_saveArea, _saveSize);
setVariable(V_OCOUNT, _objectCount);
+ _restartFlag = true;
+}
+
+bool Game::shouldRestart() {
+ bool result = _restartFlag;
+ _restartFlag = false;
+ return result;
}
void Game::saveGameData(Common::WriteStream& ws) {