diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /engines/m4/compression.cpp | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'engines/m4/compression.cpp')
-rw-r--r-- | engines/m4/compression.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/m4/compression.cpp b/engines/m4/compression.cpp index 7dbb11f685..543fbd1fef 100644 --- a/engines/m4/compression.cpp +++ b/engines/m4/compression.cpp @@ -36,7 +36,7 @@ bool MadsPack::isCompressed(Common::SeekableReadStream *stream) { char tempBuffer[8]; stream->seek(0); if (stream->read(tempBuffer, 8) == 8) { - if (!strncmp(tempBuffer, madsPackString, 8)) + if (!strncmp(tempBuffer, madsPackString, 8)) return true; } @@ -60,7 +60,7 @@ void MadsPack::initialise(Common::SeekableReadStream *stream) { stream->seek(14); _count = stream->readUint16LE(); _items = new MadsPackEntry[_count]; - + byte *headerData = new byte[0xA0]; byte *header = headerData; stream->read(headerData, 0xA0); @@ -79,7 +79,7 @@ void MadsPack::initialise(Common::SeekableReadStream *stream) { // Decompress the entry byte *compressedData = new byte[_items[i].compressedSize]; stream->read(compressedData, _items[i].compressedSize); - + FabDecompressor fab; fab.decompress(compressedData, _items[i].compressedSize, _items[i].data, _items[i].size); delete[] compressedData; @@ -102,7 +102,7 @@ void FabDecompressor::decompress(const byte *srcData, int srcSize, byte *destDat byte copyLen, copyOfsShift, copyOfsMask, copyLenMask; unsigned long copyOfs; byte *destP; - + // Validate that the data starts with the FAB header if (strncmp((const char *)srcData, "FAB", 3) != 0) error("FabDecompressor - Invalid compressed data"); @@ -121,7 +121,7 @@ void FabDecompressor::decompress(const byte *srcData, int srcSize, byte *destDat _srcData = srcData; _srcP = _srcData + 6; _srcSize = srcSize; - _bitsLeft = 16; + _bitsLeft = 16; _bitBuffer = READ_LE_UINT16(srcData + 4); for (;;) { |