mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
Better implementation of op_sleep() which doesn't freeze mouse.
svn-id: r24824
This commit is contained in:
parent
993b004b22
commit
066149b04a
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user