diff options
author | Thierry Crozat | 2017-11-07 21:27:47 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:39 +0000 |
commit | b527b54c6ff8c60d93ca61b60dc63d88344f3e5b (patch) | |
tree | 3fd7431152c5c0637272ed66e41876a9ff762827 | |
parent | f40a53473746a78619a92e1a183745dc55ed86fc (diff) | |
download | scummvm-rg350-b527b54c6ff8c60d93ca61b60dc63d88344f3e5b.tar.gz scummvm-rg350-b527b54c6ff8c60d93ca61b60dc63d88344f3e5b.tar.bz2 scummvm-rg350-b527b54c6ff8c60d93ca61b60dc63d88344f3e5b.zip |
SUPERNOVA: Disable loading and saving during execution of event callbacks
-rw-r--r-- | engines/supernova/supernova.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 342709bb09..d61c75e5c7 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -181,6 +181,8 @@ void SupernovaEngine::updateEvents() { _gm->_currentRoom->animation(); if (_gm->_state._eventCallback != kNoFn && _gm->_state._time >= _gm->_state._eventTime) { + _allowLoadGame = false; + _allowSaveGame = false; _gm->_state._eventTime = 0xffffffff; EventFunction fn = _gm->_state._eventCallback; _gm->_state._eventCallback = kNoFn; @@ -203,6 +205,8 @@ void SupernovaEngine::updateEvents() { _gm->searchStartEvent(); break; } + _allowLoadGame = true; + _allowSaveGame = true; return; } |