diff options
| author | Max Horn | 2003-04-12 19:51:14 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-04-12 19:51:14 +0000 | 
| commit | 951e5cfe982eb6df8b6ac99018ee89ded352c1c8 (patch) | |
| tree | 0eb67f32ef55dbd4fa90ed24c9efbd8e91f1143b | |
| parent | bd2011467b83e5ca6a65f534e8db59a63cab4f38 (diff) | |
| download | scummvm-rg350-951e5cfe982eb6df8b6ac99018ee89ded352c1c8.tar.gz scummvm-rg350-951e5cfe982eb6df8b6ac99018ee89ded352c1c8.tar.bz2 scummvm-rg350-951e5cfe982eb6df8b6ac99018ee89ded352c1c8.zip | |
fixed costume code for OLD_BUNDLE (but boy, this is hackish... we rather should shift all the other costume datas by 2 or 4 bytes)
svn-id: r6994
| -rw-r--r-- | scumm/costume.cpp | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/scumm/costume.cpp b/scumm/costume.cpp index 08f432002c..87f38ec3bc 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -1184,11 +1184,17 @@ void CostumeRenderer::proc_special(byte mask2) {  void LoadedCostume::loadCostume(int id) {  	_ptr = _vm->getResourceAddress(rtCostume, id); -	if (_vm->_features & GF_AFTER_V6) { +printf("Costume %d:\n", id); +hexdump(_ptr, 0x40); + +	if (_vm->_features & GF_AFTER_V6)  		_ptr += 8; -	} else if (!(_vm->_features & GF_SMALL_HEADER)) { +	else if (_vm->_features & GF_OLD_BUNDLE) +		_ptr += -2; +	else if (_vm->_features & GF_SMALL_HEADER) +		_ptr += 0; +	else  		_ptr += 2; -	}  	switch (_ptr[7] & 0x7F) {  	case 0x58: | 
