diff options
author | Filippos Karapetis | 2016-10-03 01:10:34 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-03 01:10:34 +0300 |
commit | ce800ff1ceff73cb89272f6cc11912396565f812 (patch) | |
tree | 3cff3eff14fa0026e67bfd467d2b467c6ec05dcf | |
parent | 263fdb357bc7fd01283c016f34a24f45ac13257e (diff) | |
download | scummvm-rg350-ce800ff1ceff73cb89272f6cc11912396565f812.tar.gz scummvm-rg350-ce800ff1ceff73cb89272f6cc11912396565f812.tar.bz2 scummvm-rg350-ce800ff1ceff73cb89272f6cc11912396565f812.zip |
CHEWY: Fix warnings about shadowed and unused variables
-rw-r--r-- | engines/chewy/resource.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 |