[Scummvm-cvs-logs] CVS: scummvm/sky logic.cpp,1.88,1.89

Joost Peters joostp at users.sourceforge.net
Fri Jun 6 07:41:13 CEST 2003


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

Modified Files:
	logic.cpp 
Log Message:
add some (mouse) stubs

Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/logic.cpp,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- logic.cpp	6 Jun 2003 14:04:16 -0000	1.88
+++ logic.cpp	6 Jun 2003 14:40:46 -0000	1.89
@@ -1487,7 +1487,9 @@
 }
 
 bool SkyLogic::fnNoButtons(uint32 a, uint32 b, uint32 c) {
-	error("Stub: fnNoButtons");
+	//remove the mouse buttons
+	_scriptVariables[MOUSE_STATUS] &= 0xFFFFFFFB;
+	return true;
 }
 
 bool SkyLogic::fnSetStop(uint32 a, uint32 b, uint32 c) {
@@ -1960,11 +1962,17 @@
 }
 
 bool SkyLogic::fnMouseOn(uint32 a, uint32 b, uint32 c) {
-	error("Stub: fnMouseOn");
+	//switch on the mouse highlight
+	Compact *cpt = SkyState::fetchCompact(a);
+	cpt->status |= ST_MOUSE;
+	return true;
 }
 
 bool SkyLogic::fnMouseOff(uint32 a, uint32 b, uint32 c) {
-	error("Stub: fnMouseOff");
+	//switch on (off??) the mouse highlight
+	Compact *cpt = SkyState::fetchCompact(a);
+	cpt->status &= ~ST_MOUSE;
+	return true;
 }
 
 bool SkyLogic::fnFetchX(uint32 id, uint32 b, uint32 c) {





More information about the Scummvm-git-logs mailing list