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 | |
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
-rw-r--r-- | engines/touche/opcodes.cpp | 11 | ||||
-rw-r--r-- | engines/touche/touche.h | 1 |
2 files changed, 11 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(); diff --git a/engines/touche/touche.h b/engines/touche/touche.h index b7caa3723c..d83e667d4c 100644 --- a/engines/touche/touche.h +++ b/engines/touche/touche.h @@ -547,6 +547,7 @@ protected: void op_startAnimation(); void op_setKeyCharTextColor(); void op_startMusic(); + void op_sleep(); void op_delay(); void op_lockHitBox(); void op_removeItemFromInventory(); |