aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/part.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-02-23 18:47:28 +0000
committerPaweł Kołodziejski2006-02-23 18:47:28 +0000
commite31b27176088c3215edf589ed90684abf2240b13 (patch)
tree88d393de8f807a745dd99c2409f4c6a16378c88d /engines/cine/part.cpp
parent9571aabc3941a938abbb3ddb4e588252b7e2e7df (diff)
downloadscummvm-rg350-e31b27176088c3215edf589ed90684abf2240b13.tar.gz
scummvm-rg350-e31b27176088c3215edf589ed90684abf2240b13.tar.bz2
scummvm-rg350-e31b27176088c3215edf589ed90684abf2240b13.zip
formating code
svn-id: r20835
Diffstat (limited to 'engines/cine/part.cpp')
-rw-r--r--engines/cine/part.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/engines/cine/part.cpp b/engines/cine/part.cpp
index 5739eb42c4..f332089b57 100644
--- a/engines/cine/part.cpp
+++ b/engines/cine/part.cpp
@@ -37,7 +37,6 @@ void loadPart(const char *partName) {
for (i = 0; i < 255; i++) {
partBuffer[i].part_name[0] = 0;
-
partBuffer[i].offset = 0;
partBuffer[i].packed_size = 0;
partBuffer[i].unpacked_size = 0;
@@ -191,7 +190,6 @@ void readFromPart(int16 idx, uint8 *dataPtr) {
processPendingUpdates(1);
partFileHandle.seek(partBuffer[idx].offset, SEEK_SET);
-
partFileHandle.read(dataPtr, partBuffer[idx].packed_size);
}
@@ -201,22 +199,17 @@ uint8 *readBundleFile(int16 foundFileIdx) {
dataPtr = (uint8 *) malloc(partBuffer[foundFileIdx].unpacked_size + 2);
memset(dataPtr, 0, partBuffer[foundFileIdx].unpacked_size + 2);
- if (partBuffer[foundFileIdx].unpacked_size !=
- partBuffer[foundFileIdx].packed_size) {
+ if (partBuffer[foundFileIdx].unpacked_size != partBuffer[foundFileIdx].packed_size) {
uint8 *unpackBuffer;
uint16 realSize;
- unpackBuffer =
- (uint8 *) malloc(partBuffer[foundFileIdx].packed_size + 500);
+ unpackBuffer = (uint8 *)malloc(partBuffer[foundFileIdx].packed_size + 500);
readFromPart(foundFileIdx, unpackBuffer);
- realSize =
- *(uint16 *) (unpackBuffer +
- partBuffer[foundFileIdx].packed_size - 2);
+ realSize = *(uint16 *)(unpackBuffer + partBuffer[foundFileIdx].packed_size - 2);
flipU16(&realSize);
- decomp(unpackBuffer + partBuffer[foundFileIdx].packed_size - 4,
- dataPtr + realSize, realSize);
+ decomp(unpackBuffer + partBuffer[foundFileIdx].packed_size - 4, dataPtr + realSize, realSize);
free(unpackBuffer);
} else {
readFromPart(foundFileIdx, dataPtr);