[Scummvm-cvs-logs] CVS: scummvm/sky logic.cpp,1.28,1.29

Oliver Kiehl olki at users.sourceforge.net
Sat May 24 14:53:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv23229

Modified Files:
	logic.cpp 
Log Message:
add some more functions


Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/logic.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- logic.cpp	24 May 2003 18:56:19 -0000	1.28
+++ logic.cpp	24 May 2003 21:52:35 -0000	1.29
@@ -1352,8 +1352,10 @@
 	error("Stub: fnWeWait");
 }
 
-uint32 SkyLogic::fnSendSync(uint32 a, uint32 b, uint32 c) {
-	error("Stub: fnSendSync");
+uint32 SkyLogic::fnSendSync(uint32 mega, uint32 sync, uint32 c) {
+	Compact *cpt = SkyState::fetchCompact(mega);
+	cpt->sync = (uint16)(sync & 0xffff);
+	return 0;
 }
 
 uint32 SkyLogic::fnSendFastSync(uint32 a, uint32 b, uint32 c) {
@@ -1467,8 +1469,14 @@
 	error("Stub: fnSimpleMod");
 }
 
-uint32 SkyLogic::fnRunFrames(uint32 a, uint32 b, uint32 c) {
-	error("Stub: fnRunFrames");
+uint32 SkyLogic::fnRunFrames(uint32 sequenceNo, uint32 b, uint32 c) {
+	uint16 *sequence = (uint16 *)SkyState::fetchCompact(sequenceNo);
+
+	_compact->logic = L_FRAMES;
+	_compact->offset = *sequence++;
+	_compact->grafixProg = sequence;
+	simpleAnim();
+	return 0;
 }
 
 uint32 SkyLogic::fnAwaitSync(uint32 a, uint32 b, uint32 c) {





More information about the Scummvm-git-logs mailing list