From ae9cf4d51e8c5f91e9009cab7cef54e23eb83a51 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 4 Jan 2010 08:10:29 +0000 Subject: Mohawk : Improved code formatting conventions compliance. svn-id: r46965 --- engines/mohawk/video/cinepak.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'engines/mohawk/video/cinepak.cpp') diff --git a/engines/mohawk/video/cinepak.cpp b/engines/mohawk/video/cinepak.cpp index dc287ff56c..c5289806cf 100644 --- a/engines/mohawk/video/cinepak.cpp +++ b/engines/mohawk/video/cinepak.cpp @@ -159,7 +159,7 @@ void CinepakDecoder::loadCodebook(Common::SeekableReadStream *stream, uint16 str for (uint16 i = 0; i < 256; i++) { if ((chunkID & 0x01) && !(mask >>= 1)) { if ((stream->pos() - startPos + 4) > (int32)chunkSize) - break; + break; flag = stream->readUint32BE(); mask = 0x80000000; @@ -209,14 +209,14 @@ void CinepakDecoder::decodeVectors(Common::SeekableReadStream *stream, uint16 st mask = 0x80000000; } - if (!(chunkID & 0x01) || (flag & mask)) { - if (!(chunkID & 0x02) && !(mask >>= 1)) { - if ((stream->pos() - startPos + 4) > (int32)chunkSize) - return; + if (!(chunkID & 0x01) || (flag & mask)) { + if (!(chunkID & 0x02) && !(mask >>= 1)) { + if ((stream->pos() - startPos + 4) > (int32)chunkSize) + return; - flag = stream->readUint32BE(); - mask = 0x80000000; - } + flag = stream->readUint32BE(); + mask = 0x80000000; + } if ((chunkID & 0x02) || (~flag & mask)) { if ((stream->pos() - startPos + 1) > (int32)chunkSize) -- cgit v1.2.3