aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorRobert Göffringmann2004-12-16 02:19:10 +0000
committerRobert Göffringmann2004-12-16 02:19:10 +0000
commit69925e32814895c1b8a03f36ce94d29a353a8ed3 (patch)
tree6b74201c113b89c1e08a14ce5309e3395579f0c7 /sky
parenta1934c99c6c7dd59731dc8f6c944017cf39e9551 (diff)
downloadscummvm-rg350-69925e32814895c1b8a03f36ce94d29a353a8ed3.tar.gz
scummvm-rg350-69925e32814895c1b8a03f36ce94d29a353a8ed3.tar.bz2
scummvm-rg350-69925e32814895c1b8a03f36ce94d29a353a8ed3.zip
fix gcc warnings
svn-id: r16068
Diffstat (limited to 'sky')
-rw-r--r--sky/compact.cpp1
-rw-r--r--sky/control.cpp18
2 files changed, 9 insertions, 10 deletions
diff --git a/sky/compact.cpp b/sky/compact.cpp
index 2902ee93fc..6030a9893e 100644
--- a/sky/compact.cpp
+++ b/sky/compact.cpp
@@ -159,7 +159,6 @@ SkyCompact::SkyCompact(void) {
_cptFile->read(_asciiBuf, asciiSize);
// and fill them with the compact data
- uint32 debcnt = 0;
for (uint32 lcnt = 0; lcnt < _numDataLists; lcnt++) {
for (uint32 ecnt = 0; ecnt < _dataListLen[lcnt]; ecnt++) {
_cptSizes[lcnt][ecnt] = READ_LE_UINT16(srcPos++);
diff --git a/sky/control.cpp b/sky/control.cpp
index cb87f5c8da..b5d51f6ec1 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -1169,8 +1169,8 @@ uint32 Control::prepareSaveData(uint8 *destBuf) {
for (cnt = 0; cnt < _skyCompact->_numSaveIds; cnt++) {
uint16 numElems;
uint16 *rawCpt = (uint16*)_skyCompact->fetchCptInfo(_skyCompact->_saveIds[cnt], &numElems, NULL, NULL);
- for (uint16 cnt = 0; cnt < numElems; cnt++)
- STOSW(destPos, rawCpt[cnt]);
+ for (uint16 elemCnt = 0; elemCnt < numElems; elemCnt++)
+ STOSW(destPos, rawCpt[elemCnt]);
}
*(uint32 *)destBuf = TO_LE_32(destPos - destBuf); // save size
@@ -1204,21 +1204,21 @@ void Control::importOldCompact(Compact* destCpt, uint8 **srcPos, uint16 numElems
if ((saveType & SAVE_MEGA3) && (numElems < 54 + 13 + 13 + 13))
error("Cpt %s: Savedata doesn't match cpt size (%d)!\n", name, numElems);
if (saveType & SAVE_GRAFX) {
- uint16 type, target, pos;
- LODSW(*srcPos, type);
+ uint16 graphType, target, pos;
+ LODSW(*srcPos, graphType);
LODSW(*srcPos, target);
LODSW(*srcPos, pos);
// convert to new compact system..
destCpt->grafixProgPos = pos;
- if (type == OG_PTR_NULL)
+ if (graphType == OG_PTR_NULL)
destCpt->grafixProgId = 0;
- else if (type == OG_AUTOROUTE)
+ else if (graphType == OG_AUTOROUTE)
destCpt->grafixProgId = destCpt->animScratchId;
- else if (type == OG_COMPACT)
+ else if (graphType == OG_COMPACT)
destCpt->grafixProgId = target;
- else if (type == OG_TALKTABLE)
+ else if (graphType == OG_TALKTABLE)
destCpt->grafixProgId = TALKTABLE_LIST_ID | target;
- else if (type == OG_COMPACTELEM)
+ else if (graphType == OG_COMPACTELEM)
destCpt->grafixProgId = *(uint16*)_skyCompact->getCompactElem(destCpt, target);
else
error("Illegal GrafixProg type encountered for compact %s", name);