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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat May 30 23:03:10 CEST 2009


Revision: 41050
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41050&view=rev
Author:   athrxx
Date:     2009-05-30 21:03:10 +0000 (Sat, 30 May 2009)

Log Message:
-----------
LOL: implemented opcode for white tower

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/lol.h
    scummvm/trunk/engines/kyra/script_lol.cpp

Modified: scummvm/trunk/engines/kyra/lol.h
===================================================================
--- scummvm/trunk/engines/kyra/lol.h	2009-05-30 20:50:08 UTC (rev 41049)
+++ scummvm/trunk/engines/kyra/lol.h	2009-05-30 21:03:10 UTC (rev 41050)
@@ -754,6 +754,7 @@
 	int olol_gasExplosion(EMCState *script);
 	int olol_calcNewBlockPosition(EMCState *script);
 	int olol_updateDrawPage2(EMCState *script);
+	int olol_setMouseCursor(EMCState *script);
 	int olol_characterSays(EMCState *script);
 	int olol_queueSpeech(EMCState *script);
 	int olol_getItemPrice(EMCState *script);

Modified: scummvm/trunk/engines/kyra/script_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_lol.cpp	2009-05-30 20:50:08 UTC (rev 41049)
+++ scummvm/trunk/engines/kyra/script_lol.cpp	2009-05-30 21:03:10 UTC (rev 41050)
@@ -2080,6 +2080,15 @@
 	return 1;
 }
 
+int LoLEngine::olol_setMouseCursor(EMCState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_setMouseCursor(%p) (%d)", (const void *)script, stackPos(0));
+	if (stackPos(0) == 1)
+		setMouseCursorToIcon(133);
+	else
+		setMouseCursorToItemInHand();
+	return 1;
+}
+
 int LoLEngine::olol_characterSays(EMCState *script) {
 	debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_characterSays(%p)  (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	if (stackPos(0) == -1) {
@@ -2641,7 +2650,7 @@
 	// 0xB8
 	OpcodeUnImpl();
 	Opcode(olol_updateDrawPage2);
-	OpcodeUnImpl();
+	Opcode(olol_setMouseCursor);
 	Opcode(olol_characterSays);
 
 	// 0xBC


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