[Scummvm-cvs-logs] SF.net SVN: scummvm: [24823] scummvm/trunk/engines/touche
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Sat Dec 9 18:51:06 CET 2006
Revision: 24823
http://scummvm.svn.sourceforge.net/scummvm/?rev=24823&view=rev
Author: cyx
Date: 2006-12-09 09:51:05 -0800 (Sat, 09 Dec 2006)
Log Message:
-----------
added missing opcode (bug report #1612252)
Modified Paths:
--------------
scummvm/trunk/engines/touche/opcodes.cpp
scummvm/trunk/engines/touche/touche.h
Modified: scummvm/trunk/engines/touche/opcodes.cpp
===================================================================
--- scummvm/trunk/engines/touche/opcodes.cpp 2006-12-09 16:39:28 UTC (rev 24822)
+++ scummvm/trunk/engines/touche/opcodes.cpp 2006-12-09 17:51:05 UTC (rev 24823)
@@ -21,6 +21,7 @@
*/
#include "common/stdafx.h"
+#include "common/system.h"
#include "touche/touche.h"
@@ -171,8 +172,8 @@
/* 0x70 */
&ToucheEngine::op_startMusic,
0,
+ &ToucheEngine::op_sleep,
0,
- 0,
/* 0x74 */
&ToucheEngine::op_delay,
&ToucheEngine::op_lockHitBox,
@@ -865,6 +866,14 @@
_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();
Modified: scummvm/trunk/engines/touche/touche.h
===================================================================
--- scummvm/trunk/engines/touche/touche.h 2006-12-09 16:39:28 UTC (rev 24822)
+++ scummvm/trunk/engines/touche/touche.h 2006-12-09 17:51:05 UTC (rev 24823)
@@ -547,6 +547,7 @@
void op_startAnimation();
void op_setKeyCharTextColor();
void op_startMusic();
+ void op_sleep();
void op_delay();
void op_lockHitBox();
void op_removeItemFromInventory();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list