aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/opcodes.cpp
diff options
context:
space:
mode:
authorGregory Montoir2006-12-09 17:51:05 +0000
committerGregory Montoir2006-12-09 17:51:05 +0000
commit993b004b22431c7fa61a07ff5d28bd66ac3fe07c (patch)
treed33c294b12c31bfa8b2386e53daadf30eb4ab8db /engines/touche/opcodes.cpp
parentdfb325b88b3e13e2e6d157371a1b83b9c5bc51fa (diff)
downloadscummvm-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.cpp11
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();