diff options
author | Benjamin Haisch | 2008-12-15 08:04:06 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:07 +0100 |
commit | 1f4764ad1c6a4ef2d4c2a2697572f692957bbc02 (patch) | |
tree | 9a30ff2933e7955c2da56e2ee11dc48d4fa92553 /engines/toltecs/script.cpp | |
parent | ec6f0d23a7bb502cd1fa5eef96340189fc64d8b4 (diff) | |
download | scummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.tar.gz scummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.tar.bz2 scummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.zip |
TOLTECS: - Implemented RTL
- Fixed return values in savegame/loadgame
- Some minor cleanup
Diffstat (limited to 'engines/toltecs/script.cpp')
-rw-r--r-- | engines/toltecs/script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/toltecs/script.cpp b/engines/toltecs/script.cpp index 18942ec863..a278ad53a7 100644 --- a/engines/toltecs/script.cpp +++ b/engines/toltecs/script.cpp @@ -96,7 +96,7 @@ void ScriptInterpreter::runScript(uint slotIndex) { _code = getSlotData(_regs.reg4); - while (1) { + while (!_vm->shouldQuit()) { if (_vm->_movieSceneFlag) _vm->_mouseButton = 0; @@ -124,7 +124,7 @@ void ScriptInterpreter::runScript(uint slotIndex) { // Call updateScreen roughly every 10ms else the mouse cursor will be jerky if (_vm->_system->getMillis() % 10 == 0) _vm->_system->updateScreen(); - + } } @@ -451,7 +451,7 @@ void ScriptInterpreter::execKernelOpcode(uint16 kernelOpcode) { _vm->_screen->updateShakeScreen(); - if (_vm->_quitGame) + if (_vm->shouldQuit()) return; if (!_vm->_movieSceneFlag) |