From ce800ff1ceff73cb89272f6cc11912396565f812 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 3 Oct 2016 01:10:34 +0300 Subject: CHEWY: Fix warnings about shadowed and unused variables --- engines/chewy/resource.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/chewy/resource.cpp') diff --git a/engines/chewy/resource.cpp b/engines/chewy/resource.cpp index 365bcbb5f8..c5f0a19d05 100644 --- a/engines/chewy/resource.cpp +++ b/engines/chewy/resource.cpp @@ -118,7 +118,6 @@ byte *Resource::getChunkData(uint num) { } void Resource::initSprite(Common::String filename) { - uint16 screenMode;; uint32 nextSpriteOffset; // TAF (sprite) resources are much different than the rest, so we have a @@ -126,7 +125,7 @@ void Resource::initSprite(Common::String filename) { _resType = kResourceTAF; _encrypted = false; - screenMode = _stream.readUint16LE(); + /*screenMode = */_stream.readUint16LE(); _chunkCount = _stream.readUint16LE(); _stream.skip(4); // total size of all sprites _stream.skip(3 * 256); // palette @@ -142,7 +141,7 @@ void Resource::initSprite(Common::String filename) { cur.type = kResourceTAF; _stream.skip(2 + 2 + 2); // compression flag, width, height - uint32 nextSpriteOffset = _stream.readUint32LE(); + nextSpriteOffset = _stream.readUint32LE(); uint32 spriteImageOffset = _stream.readUint32LE(); _stream.skip(1); // padding -- cgit v1.2.3