diff options
author | Filippos Karapetis | 2012-10-06 00:12:53 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-10-06 00:12:53 +0300 |
commit | 650df5a16c601bfb442d8e0355acbfdab3d4c99e (patch) | |
tree | deee6f7802cf0afcfdcf66c2740c589e8974b9ad /engines/toltecs | |
parent | ba1307b0ce37dd8f2f3be36da37d1d88de1fb70e (diff) | |
download | scummvm-rg350-650df5a16c601bfb442d8e0355acbfdab3d4c99e.tar.gz scummvm-rg350-650df5a16c601bfb442d8e0355acbfdab3d4c99e.tar.bz2 scummvm-rg350-650df5a16c601bfb442d8e0355acbfdab3d4c99e.zip |
TOLTECS: Remove redundant screen updates
Diffstat (limited to 'engines/toltecs')
-rw-r--r-- | engines/toltecs/script.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/engines/toltecs/script.cpp b/engines/toltecs/script.cpp index 03a2b66088..caa7410462 100644 --- a/engines/toltecs/script.cpp +++ b/engines/toltecs/script.cpp @@ -183,10 +183,7 @@ void ScriptInterpreter::setMainScript(uint slotIndex) { } void ScriptInterpreter::runScript() { - uint32 lastScreenUpdate = 0; - while (!_vm->shouldQuit()) { - if (_vm->_movieSceneFlag) _vm->_mouseButton = 0; @@ -217,17 +214,7 @@ void ScriptInterpreter::runScript() { byte opcode = readByte(); execOpcode(opcode); - - // Update the screen at semi-regular intervals, else the mouse - // cursor will be jerky. - uint32 now = _vm->_system->getMillis(); - if (now < lastScreenUpdate || now - lastScreenUpdate > 10) { - _vm->_system->updateScreen(); - lastScreenUpdate = _vm->_system->getMillis(); - } - } - } byte ScriptInterpreter::readByte() { |