LURE: Fix Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
D G Turner 2019-11-15 02:51:50 +00:00
parent f113a00141
commit 4af25ccfdd
4 changed files with 23 additions and 0 deletions

@ -333,6 +333,10 @@ void Game::handleMenuResponse(uint8 selection) {
case MENUITEM_SOUND:
doSound();
break;
default:
break;
}
}
@ -834,6 +838,10 @@ bool Game::GetTellActions() {
*statusLine = '\0';
}
}
break;
default:
break;
}
}
}

@ -2834,6 +2834,9 @@ void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
h.setOccupied(true);
break;
default:
break;
}
debugC(ERROR_DETAILED, kLureDebugAnimations, "Hotspot standard character point 7");
}
@ -3151,6 +3154,9 @@ void HotspotTickHandlers::playerAnimHandler(Hotspot &h) {
}
h.setOccupied(true);
break;
default:
break;
}
debugC(ERROR_DETAILED, kLureDebugAnimations, "Hotspot player anim handler end");
@ -3680,6 +3686,9 @@ void HotspotTickHandlers::talkAnimHandler(Hotspot &h) {
talkEndConversation();
}
break;
default:
break;
}
}
@ -3925,6 +3934,7 @@ void HotspotTickHandlers::barmanAnimHandler(Hotspot &h) {
break;
case WAIT:
default:
// Immediate break, since the code outside the switch handles stopping the barman
break;
}

@ -149,6 +149,7 @@ bool Introduction::show() {
break;
case ABORT_NEXT_SCENE:
default:
break;
}
delete anim;

@ -194,6 +194,8 @@ uint8 Menu::execute() {
return MENUITEM_SAVE_GAME;
case 3:
return MENUITEM_RESTORE_GAME;
default:
break;
}
} else {
switch (_selectedIndex) {
@ -203,6 +205,8 @@ uint8 Menu::execute() {
return MENUITEM_TEXT_SPEED;
case 3:
return MENUITEM_SOUND;
default:
break;
}
}
return MENUITEM_NONE;