aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorVincent Hamm2007-12-24 15:47:52 +0000
committerVincent Hamm2007-12-24 15:47:52 +0000
commitb6ec364eae08f8dffef92808583729f6887a8914 (patch)
tree014fd1aa28583dd74cce8b3ab799682be85a841b /engines/cruise
parent3c5d0b1afbdce0c7e4884ae1fa7c3432e7da87bf (diff)
downloadscummvm-rg350-b6ec364eae08f8dffef92808583729f6887a8914.tar.gz
scummvm-rg350-b6ec364eae08f8dffef92808583729f6887a8914.tar.bz2
scummvm-rg350-b6ec364eae08f8dffef92808583729f6887a8914.zip
Fix save/loading
svn-id: r29977
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/dataLoader.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index e911fd16c0..4c89c0b93f 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -471,6 +471,7 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
case 0:
{
filesDatabase[fileIndex].subData.resourceType = 8;
+ filesDatabase[fileIndex].subData.index = currentEntryIdx;
break;
}
case 1:
@@ -478,7 +479,7 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
filesDatabase[fileIndex].width = filesDatabase[fileIndex].widthInColumn * 8;
filesDatabase[fileIndex].subData.resourceType = 2;
decodeGfxFormat1(&filesDatabase[fileIndex]);
- filesDatabase[fileIndex].subData.index = currentDestEntry;
+ filesDatabase[fileIndex].subData.index = currentEntryIdx;
filesDatabase[fileIndex].subData.transparency = localBuffer.transparency % 0x10;
break;
}
@@ -487,7 +488,7 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
filesDatabase[fileIndex].width = filesDatabase[fileIndex].widthInColumn * 2;
filesDatabase[fileIndex].subData.resourceType = 4;
decodeGfxFormat4(&filesDatabase[fileIndex]);
- filesDatabase[fileIndex].subData.index = currentDestEntry;
+ filesDatabase[fileIndex].subData.index = currentEntryIdx;
filesDatabase[fileIndex].subData.transparency = localBuffer.transparency % 0x10;
break;
}
@@ -496,7 +497,7 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
filesDatabase[fileIndex].subData.resourceType = 4;
decodeGfxFormat5(&filesDatabase[fileIndex]);
filesDatabase[fileIndex].width = filesDatabase[fileIndex].widthInColumn;
- filesDatabase[fileIndex].subData.index = currentDestEntry;
+ filesDatabase[fileIndex].subData.index = currentEntryIdx;
filesDatabase[fileIndex].subData.transparency = localBuffer.transparency;
break;
}
@@ -504,7 +505,7 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
{
filesDatabase[fileIndex].subData.resourceType = 4;
filesDatabase[fileIndex].width = filesDatabase[fileIndex].widthInColumn;
- filesDatabase[fileIndex].subData.index = currentDestEntry;
+ filesDatabase[fileIndex].subData.index = currentEntryIdx;
filesDatabase[fileIndex].subData.transparency = localBuffer.transparency;
break;
}