TSAGE: Silenced compiler warnings

This commit is contained in:
Paul Gilbert 2011-04-30 20:38:41 +10:00
parent 9f37451e01
commit d673fbc6a8
3 changed files with 4 additions and 2 deletions

View File

@ -557,7 +557,6 @@ void PlayerMover::pathfind(Common::Point *routeList, Common::Point srcPos, Commo
} while (routeRegions[++idx] != destRegion);
tempList[idx] = 1;
idx = 0;
for (int listIndex = 1; listIndex <= endIndex; ++listIndex) {
int var10 = tempList[listIndex];
int var12 = tempList[listIndex + 1];

View File

@ -487,7 +487,7 @@ void InventoryDialog::execute() {
if (!event.handled && event.eventType == EVENT_KEYPRESS) {
if ((event.kbd.keycode == Common::KEYCODE_RETURN) || (event.kbd.keycode == Common::KEYCODE_ESCAPE)) {
// Exit the dialog
hiliteObj = &_btnOk;
//hiliteObj = &_btnOk;
break;
}
}

View File

@ -239,6 +239,9 @@ byte *TLib::getResource(uint16 id, bool suppressErrors) {
uint16 word_48050 = 0, currentToken = 0, word_48054 =0;
byte byte_49068 = 0, byte_49069 = 0;
DecodeReference table[0x1000];
for (int i = 0; i < 0x1000; ++i) {
table[i].vByte = table[i].vWord = 0;
}
Common::Stack<uint16> tokenList;
for (;;) {