diff options
author | Torbjörn Andersson | 2005-03-14 11:46:10 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-03-14 11:46:10 +0000 |
commit | 10f21cfe2c53e470ac00de11ce063d65a5cd0113 (patch) | |
tree | f67691a347717af0546d87663e1e2ca396a7bc97 /scumm | |
parent | 4daf4c47b890aac88f31874892fd0bae1e7efcbb (diff) | |
download | scummvm-rg350-10f21cfe2c53e470ac00de11ce063d65a5cd0113.tar.gz scummvm-rg350-10f21cfe2c53e470ac00de11ce063d65a5cd0113.tar.bz2 scummvm-rg350-10f21cfe2c53e470ac00de11ce063d65a5cd0113.zip |
Fixed GCC warning about unused variables.
svn-id: r17135
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index d99786af4d..c03a4448b1 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1821,7 +1821,8 @@ void Gdi::decompressMaskImgOr(byte *dst, const byte *src, int height) const { void DecodeNESTileData(const byte *src, byte *dest) { int len = READ_LE_UINT16(src); src += 2; const byte *end = src + len; - int numtiles = *src++; + int numtiles; + numtiles = *src++; // not currently used while (src < end) { byte data = *src++; for (int j = 0; j < (data & 0x7F); j++) @@ -1840,7 +1841,7 @@ void Gdi::decodeNESGfx(const byte *room) { const byte *gdata = room + READ_LE_UINT16(room + 0x0A); int tileset = *gdata++; int width = READ_LE_UINT16(room + 0x04); - int height = READ_LE_UINT16(room + 0x06); + // int height = READ_LE_UINT16(room + 0x06); DecodeNESTileData(_vm->getResourceAddress(rtCostume, 37 + tileset), _NESPatTable + _NESBaseTiles * 16); for (int i = 0; i < 16; i++) |