[Scummvm-cvs-logs] SF.net SVN: scummvm: [31276] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Mar 28 00:46:30 CET 2008


Revision: 31276
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31276&view=rev
Author:   lordhoto
Date:     2008-03-27 16:46:30 -0700 (Thu, 27 Mar 2008)

Log Message:
-----------
Implemented opcode 74: o2_setSceneAnimPos2.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra_v2.cpp
    scummvm/trunk/engines/kyra/kyra_v2.h
    scummvm/trunk/engines/kyra/script_v2.cpp

Modified: scummvm/trunk/engines/kyra/kyra_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra_v2.cpp	2008-03-27 23:12:45 UTC (rev 31275)
+++ scummvm/trunk/engines/kyra/kyra_v2.cpp	2008-03-27 23:46:30 UTC (rev 31276)
@@ -1774,7 +1774,7 @@
 
 	_lastSfxTrack = track;
 
-	int16 vocIndex = (int16) READ_LE_UINT16(&_ingameSoundIndex[track * 2]);
+	int16 vocIndex = (int16)READ_LE_UINT16(&_ingameSoundIndex[track * 2]);
 	if (vocIndex != -1)
 		_sound->voicePlay(_ingameSoundList[vocIndex]);
 	else if (_flags.platform == Common::kPlatformPC)

Modified: scummvm/trunk/engines/kyra/kyra_v2.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra_v2.h	2008-03-27 23:12:45 UTC (rev 31275)
+++ scummvm/trunk/engines/kyra/kyra_v2.h	2008-03-27 23:46:30 UTC (rev 31276)
@@ -1013,6 +1013,7 @@
 	int o2_disableSceneAnim(ScriptState *script);
 	int o2_enableSceneAnim(ScriptState *script);
 	int o2_restoreInventoryGfx(ScriptState *script);
+	int o2_setSceneAnimPos2(ScriptState *script);
 	int o2_update(ScriptState *script);
 	int o2_fadeScenePal(ScriptState *script);
 	int o2_enterNewSceneEx(ScriptState *script);

Modified: scummvm/trunk/engines/kyra/script_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v2.cpp	2008-03-27 23:12:45 UTC (rev 31275)
+++ scummvm/trunk/engines/kyra/script_v2.cpp	2008-03-27 23:46:30 UTC (rev 31276)
@@ -740,6 +740,13 @@
 	return 0;
 }
 
+int KyraEngine_v2::o2_setSceneAnimPos2(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_setSceneAnimPos2(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+	_sceneAnims[stackPos(0)].x2 = stackPos(1);
+	_sceneAnims[stackPos(0)].y2 = stackPos(2);
+	return 0;
+}
+
 int KyraEngine_v2::o2_update(ScriptState *script) {
 	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_v2::o2_update(%p) (%d)", (const void *)script, stackPos(0));
 
@@ -1802,7 +1809,7 @@
 		// 0x48
 		Opcode(o2_enableSceneAnim),
 		Opcode(o2_restoreInventoryGfx),
-		OpcodeUnImpl(),
+		Opcode(o2_setSceneAnimPos2),
 		Opcode(o2_update),
 		// 0x4c
 		OpcodeUnImpl(),


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