aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-26 09:36:41 +0000
committerTorbjörn Andersson2006-05-26 09:36:41 +0000
commit985215a04a6dfa9a07d7a8987b639c95b1721c24 (patch)
treec2c0883ce60a3049a56be63010a49ae9c97687cf /engines/cine/various.cpp
parent003504272565235710a9f742c8763d13182cca5f (diff)
downloadscummvm-rg350-985215a04a6dfa9a07d7a8987b639c95b1721c24.tar.gz
scummvm-rg350-985215a04a6dfa9a07d7a8987b639c95b1721c24.tar.bz2
scummvm-rg350-985215a04a6dfa9a07d7a8987b639c95b1721c24.zip
As far as I can tell, there's no longer any reason for PartBuffer and AnimData
to be packed, so I've removed the packing and added the 'refresh' field to AnimData instead of having it as a separate array. On the other hand, animHeaderStruct and animHeader2Struct *should* have been packed, but weren't. I've changed they way they are initialised so that the packing should no longer matter for them either. svn-id: r22651
Diffstat (limited to 'engines/cine/various.cpp')
-rw-r--r--engines/cine/various.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 4ea8f8712f..a36dd7b229 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -54,13 +54,6 @@ uint16 var5;
int16 buildObjectListCommand(void);
-// TODO: This could/should be a field in the AnimData struct, but as long as it
-// is marked as packed I don't dare add anything to it without knowing more
-// about how it's used. (It's quite possible that it no longer needs to be
-// packed.)
-
-bool refreshAnimData[NUM_MAX_ANIMDATA];
-
void drawString(const char *string, byte param) {
}
@@ -760,7 +753,7 @@ int16 makeLoad(char *saveName) {
animDataTable[i].fileIdx = fHandle->readSint16BE();
animDataTable[i].frameIdx = fHandle->readSint16BE();
fHandle->read(animDataTable[i].name, 10);
- refreshAnimData[i] = (fHandle->readByte() != 0);
+ animDataTable[i].refresh = (fHandle->readByte() != 0);
}
// TODO: handle screen params (really required ?)