[Scummvm-cvs-logs] CVS: scummvm/scumm script_v5.cpp,1.174,1.175

Travis Howell kirben at users.sourceforge.net
Sun Sep 7 20:07:28 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv14457/scumm

Modified Files:
	script_v5.cpp 
Log Message:

Correct verb position in mac version of indy3ega


Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -d -r1.174 -r1.175
--- script_v5.cpp	6 Sep 2003 03:12:04 -0000	1.174
+++ script_v5.cpp	8 Sep 2003 03:06:37 -0000	1.175
@@ -2385,8 +2385,35 @@
 		case 5:										/* set xy */
 			vs->x = getVarOrDirectWord(0x80);
 			vs->y = getVarOrDirectWord(0x40);
+			// Macintosh verison of indy3ega used different interface, so adjust values.
+			if ((_features & GF_MACINTOSH) && (_gameId == GID_INDY3)) {
+				if ((verb > 0) && (verb < 14) || (verb > 31) && (verb < 35)) {
+					switch (verb) {
+					case 1:
+					case 2:
+					case 9:
+						vs->x += 16;
+						break;
+					case 10:
+					case 11:
+					case 12:
+						vs->x += 36;
+						break;
+					case 4:
+					case 5:
+					case 8:
+						vs->x += 60;
+						break;
+					case 13:
+					case 32:
+					case 33:
+					case 34:
+						vs->x += 90;
+						break;
+					}
+				}
+			} else 	if (_gameId == GID_LOOM256) {
 			// FIXME: hack loom notes into right spot
-			if (_gameId == GID_LOOM256) {
 				if ((verb >= 90) && (verb <= 97)) {	// Notes
 					switch (verb) {
 					case 90:





More information about the Scummvm-git-logs mailing list