aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-10-03 01:10:34 +0300
committerFilippos Karapetis2016-10-03 01:10:34 +0300
commitce800ff1ceff73cb89272f6cc11912396565f812 (patch)
tree3cff3eff14fa0026e67bfd467d2b467c6ec05dcf
parent263fdb357bc7fd01283c016f34a24f45ac13257e (diff)
downloadscummvm-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.cpp5
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