diff options
author | Eugene Sandulenko | 2006-12-09 18:30:34 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-12-09 18:30:34 +0000 |
commit | 066149b04abf471d5de389ce61eb5aaa8c9520c6 (patch) | |
tree | d15020c8f93dd46488be8505f93e53e07b7c8e5e | |
parent | 993b004b22431c7fa61a07ff5d28bd66ac3fe07c (diff) | |
download | scummvm-rg350-066149b04abf471d5de389ce61eb5aaa8c9520c6.tar.gz scummvm-rg350-066149b04abf471d5de389ce61eb5aaa8c9520c6.tar.bz2 scummvm-rg350-066149b04abf471d5de389ce61eb5aaa8c9520c6.zip |
Better implementation of op_sleep() which doesn't freeze mouse.
svn-id: r24824
-rw-r--r-- | engines/touche/opcodes.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index 8fc9d66435..066c87fc29 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -870,7 +870,10 @@ void ToucheEngine::op_sleep() { debugC(9, kDebugOpcodes, "ToucheEngine::op_sleep()"); int16 cycles = _script.readNextWord(); if (!_fastMode) { - _system->delayMillis(50 * cycles); + for (int i = 0; i < cycles; i++) { + _system->delayMillis(50); + _system->updateScreen(); + } } } |