diff options
| author | Max Horn | 2005-04-17 22:37:16 +0000 | 
|---|---|---|
| committer | Max Horn | 2005-04-17 22:37:16 +0000 | 
| commit | fe93d2d7cf2b3c57ca17428d2427181a1d2f57c0 (patch) | |
| tree | f77659efc7c51917c0ad69280dfa942d368b54ce | |
| parent | e53cefd4b91d3d445f830c93b28c8e172d22f98d (diff) | |
| download | scummvm-rg350-fe93d2d7cf2b3c57ca17428d2427181a1d2f57c0.tar.gz scummvm-rg350-fe93d2d7cf2b3c57ca17428d2427181a1d2f57c0.tar.bz2 scummvm-rg350-fe93d2d7cf2b3c57ca17428d2427181a1d2f57c0.zip  | |
cleanup
svn-id: r17657
| -rw-r--r-- | scumm/script_v5.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 71b006ff00..dfdd5b18e0 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1708,7 +1708,7 @@ void ScummEngine_v5::o5_resourceRoutines() {  	int op = _opcode & 0x3F; -	switch (_opcode & 0x3F) { +	switch (op) {  	case 1:			// SO_LOAD_SCRIPT  	case 2:			// SO_LOAD_SOUND  	case 3:			// SO_LOAD_COSTUME @@ -1787,32 +1787,32 @@ void ScummEngine_v5::o5_resourceRoutines() {  	// TODO: For the following see also Hibarnatus' information on bug #805691.  	case 32:  		// TODO (apparently never used in FM-TOWNS) -		warning("o5_resourceRoutines %d not yet handled (script %d)", _opcode & 0x3F,  vm.slot[_currentScript].number); +		warning("o5_resourceRoutines %d not yet handled (script %d)", op,  vm.slot[_currentScript].number);  		break;  	case 33:  		// TODO (apparently never used in FM-TOWNS) -		warning("o5_resourceRoutines %d not yet handled (script %d)", _opcode & 0x3F,  vm.slot[_currentScript].number); +		warning("o5_resourceRoutines %d not yet handled (script %d)", op,  vm.slot[_currentScript].number);  		break;  	case 35:  		// TODO: Might be used to set CD volume in FM-TOWNS Loom  		foo = getVarOrDirectByte(PARAM_2); -		warning("o5_resourceRoutines %d not yet handled (script %d)", _opcode & 0x3F,  vm.slot[_currentScript].number); +		warning("o5_resourceRoutines %d not yet handled (script %d)", op,  vm.slot[_currentScript].number);  		break;  	case 36:  		// TODO: Sets the loudness of a sound resource. Used in Indy3 and Zak.   		foo = getVarOrDirectByte(PARAM_2);  		bar = fetchScriptByte(); -		warning("o5_resourceRoutines %d not yet handled (script %d)", _opcode & 0x3F,  vm.slot[_currentScript].number); +		warning("o5_resourceRoutines %d not yet handled (script %d)", op,  vm.slot[_currentScript].number);  		break;  	case 37:  		// TODO: Sets the pitch of a sound resource (pitch = foo - center semitones.  		// "center" is at 0x32 in the sfx resource (always 0x3C in zak256, but sometimes different in Indy3).   		foo = getVarOrDirectByte(PARAM_2); -		warning("o5_resourceRoutines %d not yet handled (script %d)", _opcode & 0x3F,  vm.slot[_currentScript].number); +		warning("o5_resourceRoutines %d not yet handled (script %d)", op,  vm.slot[_currentScript].number);  		break;  	default: -		warning("Unknown o5_resourceRoutines: %d", _opcode & 0x3F); +		warning("Unknown o5_resourceRoutines: %d", op);  		break;  	}  }  | 
