DRACI: Fix Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
D G Turner 2019-10-18 15:24:54 +01:00
parent 4d8a0f22f2
commit 7bf7a415f7
2 changed files with 7 additions and 2 deletions

View File

@ -173,6 +173,9 @@ void Font::drawChar(Surface *dst, uint8 chr, int tx, int ty, int with_color) con
case 251:
color = kFontColor4;
break;
default:
break;
}
// Paint the pixel

View File

@ -643,8 +643,8 @@ void Game::loop(LoopSubstatus substatus, bool shouldExit) {
case kStatusDialogue:
handleDialogueLoop();
break;
case kStatusGate:
// cannot happen when isCursonOn; added for completeness
case kStatusGate: // cannot happen when isCursonOn; added for completeness
default:
break;
}
}
@ -1000,6 +1000,8 @@ void Game::inventorySwitch(int keycode) {
removeItem(new_item);
}
break;
default:
break;
}
if (getLoopStatus() == kStatusOrdinary) {
updateOrdinaryCursor();