diff options
author | Gregory Montoir | 2006-12-09 17:51:05 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-12-09 17:51:05 +0000 |
commit | 993b004b22431c7fa61a07ff5d28bd66ac3fe07c (patch) | |
tree | d33c294b12c31bfa8b2386e53daadf30eb4ab8db /engines/touche/opcodes.cpp | |
parent | dfb325b88b3e13e2e6d157371a1b83b9c5bc51fa (diff) | |
download | scummvm-rg350-993b004b22431c7fa61a07ff5d28bd66ac3fe07c.tar.gz scummvm-rg350-993b004b22431c7fa61a07ff5d28bd66ac3fe07c.tar.bz2 scummvm-rg350-993b004b22431c7fa61a07ff5d28bd66ac3fe07c.zip |
added missing opcode (bug report #1612252)
svn-id: r24823
Diffstat (limited to 'engines/touche/opcodes.cpp')
-rw-r--r-- | engines/touche/opcodes.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index 28cb2ddb61..8fc9d66435 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -21,6 +21,7 @@ */ #include "common/stdafx.h" +#include "common/system.h" #include "touche/touche.h" @@ -171,7 +172,7 @@ void ToucheEngine::setupOpcodes() { /* 0x70 */ &ToucheEngine::op_startMusic, 0, - 0, + &ToucheEngine::op_sleep, 0, /* 0x74 */ &ToucheEngine::op_delay, @@ -865,6 +866,14 @@ void ToucheEngine::op_startMusic() { _newMusicNum = _script.readNextWord(); } +void ToucheEngine::op_sleep() { + debugC(9, kDebugOpcodes, "ToucheEngine::op_sleep()"); + int16 cycles = _script.readNextWord(); + if (!_fastMode) { + _system->delayMillis(50 * cycles); + } +} + void ToucheEngine::op_delay() { debugC(9, kDebugOpcodes, "ToucheEngine::op_delay()"); int16 delay = _script.readNextWord(); |