[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.58,1.59
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sat Jun 7 03:45:04 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv1698
Modified Files:
costume.cpp
Log Message:
some changes for v1 costumes
Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- costume.cpp 7 Jun 2003 00:13:24 -0000 1.58
+++ costume.cpp 7 Jun 2003 10:44:54 -0000 1.59
@@ -436,7 +436,9 @@
// Don't forget, these games were designed around a fixed 16 color HW palette :-)
// In addition, all offsets are shifted by 2; we accomodate that via a seperate
// _baseptr value (instead of adding tons of if's throughout the code).
- if (_vm->_features & GF_OLD_BUNDLE) {
+ if (_vm->_version == 1)
+ _baseptr += 2;
+ else if (_vm->_features & GF_OLD_BUNDLE) {
_numColors = 1;
_baseptr += 2;
}
@@ -510,7 +512,10 @@
return;
}
- r = lc._baseptr + READ_LE_UINT16(lc._ptr + anim * 2 + lc._numColors + 42);
+ if (_version == 1)
+ r = lc._baseptr + READ_LE_UINT16(lc._ptr + anim * 2 + lc._numColors + 30);
+ else
+ r = lc._baseptr + READ_LE_UINT16(lc._ptr + anim * 2 + lc._numColors + 42);
if (r == lc._baseptr) {
return;
@@ -573,6 +578,8 @@
memset(_palette, 8, 16);
_palette[12] = 0;
}
+ if (_vm->_version == 1)
+ return;
_palette[_loaded._ptr[8]] = _palette[0];
} else {
if ((_vm->_features & GF_NEW_OPCODES) || (_vm->VAR(_vm->VAR_CURRENT_LIGHTS) & LIGHTMODE_actor_color)) {
More information about the Scummvm-git-logs
mailing list