Fixed Indy4's necklace bug. Indy4 is now finishable

svn-id: r3643
This commit is contained in:
Vincent Hamm 2002-03-03 22:14:47 +00:00
parent e924cd5c26
commit c994e8bc8b
2 changed files with 9 additions and 1 deletions

View File

@ -470,6 +470,7 @@ void Scumm::saveOrLoad(Serializer *s) {
int i,j;
int var120Backup;
int var98Backup;
s->saveLoadEntries(this,mainEntries);
@ -496,10 +497,17 @@ void Scumm::saveOrLoad(Serializer *s) {
s->saveLoadArrayOf(_shadowPalette, _shadowPaletteSize, 1, sleByte);
s->saveLoadArrayOf(_classData, _numGlobalObjects, sizeof(_classData[0]), sleUint32);
var120Backup=_vars[120];
var98Backup=_vars[98];
s->saveLoadArrayOf(_vars, _numVariables, sizeof(_vars[0]), sleInt16);
if(_gameId == GID_TENTACLE) // Maybe misplaced, but that's the main idea
_vars[120]=var120Backup;
if(_gameId == GID_INDY4)
_vars[98]=var98Backup;;
s->saveLoadArrayOf(_bitVars, _numBitVariables>>3, 1, sleByte);
/* Save or load a list of the locked objects */

View File

@ -875,7 +875,7 @@ void Scumm::dumpResource(char *tag, int index, byte *ptr) {
else
size = READ_BE_UINT32_UNALIGNED(ptr+4);
sprintf(buf, "dumps\\%s%d.dmp", tag,index);
sprintf(buf, "dumps/%s%d.dmp", tag,index);
out = fopen(buf,"rb");
if (!out) {