Better implementation of op_sleep() which doesn't freeze mouse.

svn-id: r24824
This commit is contained in:
Eugene Sandulenko 2006-12-09 18:30:34 +00:00
parent 993b004b22
commit 066149b04a

View File

@ -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();
}
}
}