From 1f4764ad1c6a4ef2d4c2a2697572f692957bbc02 Mon Sep 17 00:00:00 2001 From: Benjamin Haisch Date: Mon, 15 Dec 2008 08:04:06 +0000 Subject: TOLTECS: - Implemented RTL - Fixed return values in savegame/loadgame - Some minor cleanup --- engines/toltecs/script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/toltecs/script.cpp') 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) -- cgit v1.2.3