diff options
| author | Max Horn | 2003-12-21 19:01:39 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-12-21 19:01:39 +0000 | 
| commit | 927964c588470f99c957d4b3b5853c94a2dd6653 (patch) | |
| tree | b17658dbb9d43e8e631d1ef1651a16098eb99351 | |
| parent | 4cc5f3cd2a6f3404ee86151f6304ea86685d0789 (diff) | |
| download | scummvm-rg350-927964c588470f99c957d4b3b5853c94a2dd6653.tar.gz scummvm-rg350-927964c588470f99c957d4b3b5853c94a2dd6653.tar.bz2 scummvm-rg350-927964c588470f99c957d4b3b5853c94a2dd6653.zip | |
tiny cleanup
svn-id: r11837
| -rw-r--r-- | scumm/smush/insane.cpp | 33 | ||||
| -rw-r--r-- | scumm/smush/insane.h | 6 | 
2 files changed, 14 insertions, 25 deletions
| diff --git a/scumm/smush/insane.cpp b/scumm/smush/insane.cpp index cb22e89a00..e65281be1e 100644 --- a/scumm/smush/insane.cpp +++ b/scumm/smush/insane.cpp @@ -1919,14 +1919,12 @@ void Insane::runScene(int arraynum) {  		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 @@ void Insane::runScene(int arraynum) {  		_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 @@ void Insane::runScene(int arraynum) {  		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::runScene(int arraynum) {  }  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 diff --git a/scumm/smush/insane.h b/scumm/smush/insane.h index a5be42608a..0c215d75f3 100644 --- a/scumm/smush/insane.h +++ b/scumm/smush/insane.h @@ -283,13 +283,11 @@ class Insane {  	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); | 
