[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.433,1.434 scumm.h,1.578,1.579 vars.cpp,1.118,1.119 verbs.cpp,1.127,1.128

kirben kirben at users.sourceforge.net
Sat Apr 16 08:00:51 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24637/scumm

Modified Files:
	scumm.cpp scumm.h vars.cpp verbs.cpp 
Log Message:

Add mouse state VAR for HE 72+ games.


Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.433
retrieving revision 1.434
diff -u -d -r1.433 -r1.434
--- scumm.cpp	16 Apr 2005 12:41:56 -0000	1.433
+++ scumm.cpp	16 Apr 2005 14:59:14 -0000	1.434
@@ -1052,6 +1052,7 @@
 	VAR_NUM_SPRITES = 0xFF;
 	VAR_NUM_PALETTES = 0xFF;
 	VAR_NUM_UNK = 0xFF;
+	VAR_MOUSE_STATE = 0xFF;
 	VAR_POLYGONS_ONLY = 0xFF;
 	VAR_WINDOWS_VERSION = 0xFF;
 	VAR_KEY_STATE = 0xFF;

Index: scumm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v
retrieving revision 1.578
retrieving revision 1.579
diff -u -d -r1.578 -r1.579
--- scumm.h	16 Apr 2005 10:16:31 -0000	1.578
+++ scumm.h	16 Apr 2005 14:59:15 -0000	1.579
@@ -1354,6 +1354,7 @@
 	byte VAR_NUM_SPRITES;
 	byte VAR_NUM_PALETTES;
 	byte VAR_NUM_UNK;
+	byte VAR_MOUSE_STATE;
 	byte VAR_POLYGONS_ONLY;
 	byte VAR_WINDOWS_VERSION;
 	byte VAR_KEY_STATE;

Index: vars.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/vars.cpp,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- vars.cpp	19 Mar 2005 02:40:42 -0000	1.118
+++ vars.cpp	16 Apr 2005 14:59:15 -0000	1.119
@@ -261,6 +261,7 @@
 	VAR_NUM_IMAGES = 72;
 	VAR_NUM_CHARSETS = 73;
 	VAR_NUM_GLOBAL_OBJS = 74;
+	VAR_MOUSE_STATE = 75;
 	VAR_POLYGONS_ONLY = 76;
 
 	if (_heversion >= 80)

Index: verbs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/verbs.cpp,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- verbs.cpp	13 Apr 2005 06:30:41 -0000	1.127
+++ verbs.cpp	16 Apr 2005 14:59:15 -0000	1.128
@@ -353,9 +353,15 @@
 	int i, over;
 	VerbSlot *vs;
 
+	if (VAR_MOUSE_STATE != 0xFF)
+		VAR(VAR_MOUSE_STATE) = 0;
+
 	if (_userPut <= 0 || _mouseButStat == 0)
 		return;
 
+	if (VAR_MOUSE_STATE != 0xFF)
+		VAR(VAR_MOUSE_STATE) = _mouseButStat;
+
 	if (_mouseButStat < MBS_MAX_KEY) {
 		/* Check keypresses */
 		vs = &_verbs[1];





More information about the Scummvm-git-logs mailing list