[Scummvm-cvs-logs] CVS: scummvm/scumm/smush insane.cpp,1.20,1.21 insane.h,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Sun Dec 21 11:02:02 CET 2003


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

Modified Files:
	insane.cpp insane.h 
Log Message:
tiny cleanup

Index: insane.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/insane.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- insane.cpp	20 Dec 2003 22:03:07 -0000	1.20
+++ insane.cpp	21 Dec 2003 19:01:39 -0000	1.21
@@ -1919,14 +1919,12 @@
 		if (_val55d) {
 			initScene(5);
 			startVideo("tovista2.san", 1, 32, 12, 0);
+		} else if (_val56d) {
+			initScene(5);
+			startVideo("tovista2.san", 1, 32, 12, 0, _smush_tovista2Flu, 60);
 		} else {
-			if (_val56d) {
-				initScene(5);
-				startVideo1("tovista2.san", 1, 32, 12, 0, _smush_tovista2Flu, 60);
-			} else {
-				initScene(4);
-				startVideo("tovista1.san", 1, 32, 12, 0);
-			}
+			initScene(4);
+			startVideo("tovista1.san", 1, 32, 12, 0);
 		}
 		break;
 	case 3:
@@ -1936,15 +1934,13 @@
 		_val8d = readArray(_numberArray, 2);
 		if (_val55d) {
 			initScene(6);
-			startVideo1("toranch.san", 1, 32, 12, 0, _smush_toranchFlu, 300);
+			startVideo("toranch.san", 1, 32, 12, 0, _smush_toranchFlu, 300);
+		} else if (_val56d) {
+			initScene(6);
+			startVideo("toranch.san", 1, 32, 12, 0, _smush_toranchFlu, 240);
 		} else {
-			if (_val56d) {
-				initScene(6);
-				startVideo1("toranch.san", 1, 32, 12, 0, _smush_toranchFlu, 240);
-			} else {
-				initScene(6);
-				startVideo("toranch.san", 1, 32, 12, 0);
-			}
+			initScene(6);
+			startVideo("toranch.san", 1, 32, 12, 0);
 		}
 		break;
 	case 4:
@@ -1964,7 +1960,7 @@
 		smlayer_setFluPalette(_smush_roadrashRip, 1);
 		smlayer_setActorCostume(0, 2, readArray(_numberArray, 10));
 		smlayer_putActor(0, 2, _actor[0].x, _actor[0].y1+190, _smlayer_room2);
-		startVideo1("minedriv.san", 1, 32, 12, 0, _smush_minedrivFlu, 420);
+		startVideo("minedriv.san", 1, 32, 12, 0, _smush_minedrivFlu, 420);
 		break;
 	case 7:
 	case 8:
@@ -2016,11 +2012,6 @@
 }
 
 void Insane::startVideo(const char *filename, int num, int argC, int frameRate, 
-						int doMainLoop) {
-	startVideo1(filename, num, argC, frameRate, doMainLoop, 0, 0);
-}
-
-void Insane::startVideo1(const char *filename, int num, int argC, int frameRate, 
 						 int doMainLoop, byte *fluPtr, int32 numFrames) {
 
 	// Demo has different insane, so disable it now

Index: insane.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/insane.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- insane.h	20 Dec 2003 22:03:07 -0000	1.13
+++ insane.h	21 Dec 2003 19:01:39 -0000	1.14
@@ -283,13 +283,11 @@
 
 	void initvars(void);
 	void readFileToMem(const char *name, byte **buf);
-	void startVideo(const char *filename, int num, int argC, int frameRate, int doMainLoop);
-	void startVideo1(const char *filename, int num, int argC, int frameRate, 
-					 int doMainLoop, byte *fluPtr, int32 numFrames);
+	void startVideo(const char *filename, int num, int argC, int frameRate, 
+					 int doMainLoop, byte *fluPtr = 0, int32 numFrames = 0);
 	void smush_proc39(void);
 	void smush_proc40(void);
 	void smush_proc41(void);
-	void imuseCode04(void);
 	void smush_warpMouse(int x, int y, int buttons);
 	void putActors(void);
 	void readState(void);





More information about the Scummvm-git-logs mailing list