diff options
author | D G Turner | 2019-10-04 01:34:31 +0100 |
---|---|---|
committer | D G Turner | 2019-10-04 01:34:31 +0100 |
commit | 522c5b654858ea4b1a7341060ecc8e259c7a5331 (patch) | |
tree | 25832cb6be3acd3d70c940f007b550a6f37bf393 /engines/bladerunner/script | |
parent | 6afe6c18eab16db81ea6d0eb9451037c2a34ddd9 (diff) | |
download | scummvm-rg350-522c5b654858ea4b1a7341060ecc8e259c7a5331.tar.gz scummvm-rg350-522c5b654858ea4b1a7341060ecc8e259c7a5331.tar.bz2 scummvm-rg350-522c5b654858ea4b1a7341060ecc8e259c7a5331.zip |
BLADERUNNER: Add Some Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/bladerunner/script')
-rw-r--r-- | engines/bladerunner/script/kia_script.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/vk_script.cpp | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/engines/bladerunner/script/kia_script.cpp b/engines/bladerunner/script/kia_script.cpp index 5cbdfe8fe3..f40a677746 100644 --- a/engines/bladerunner/script/kia_script.cpp +++ b/engines/bladerunner/script/kia_script.cpp @@ -986,6 +986,8 @@ void KIAScript::SCRIPT_KIA_DLL_Play_Clue_Asset_Script(int notUsed, int clueId) { KIA_Play_Actor_Dialogue(kActorRunciter, 640); KIA_Play_Actor_Dialogue(kActorRunciter, 650); break; + default: + break; } } diff --git a/engines/bladerunner/script/vk_script.cpp b/engines/bladerunner/script/vk_script.cpp index 6c4de428a5..71954c2435 100644 --- a/engines/bladerunner/script/vk_script.cpp +++ b/engines/bladerunner/script/vk_script.cpp @@ -479,6 +479,8 @@ void VKScript::SCRIPT_VK_DLL_McCoy_Asks_Question(int actorId, int questionId) { VK_Play_Speech_Line(kActorMcCoy, 7780, 0.5f); } break; + default: + break; } if ( _vm->_debugger->_playFullVk ) { @@ -541,6 +543,8 @@ void VKScript::SCRIPT_VK_DLL_Question_Asked(int actorId, int questionId) { case kActorDektora: askDektora(questionId); break; + default: + break; } } @@ -566,6 +570,8 @@ void VKScript::SCRIPT_VK_DLL_Shutdown(int actorId, int humanPercentage, int repl case kActorDektora: Actor_Clue_Acquire(kActorMcCoy, kClueVKDektoraReplicant, true, -1); break; + default: + break; } } else if (humanPercentage > 79) { VK_Play_Speech_Line(kActorAnsweringMachine, 420, 0.5f); @@ -586,6 +592,8 @@ void VKScript::SCRIPT_VK_DLL_Shutdown(int actorId, int humanPercentage, int repl case kActorDektora: Actor_Clue_Acquire(kActorMcCoy, kClueVKDektoraHuman, true, -1); break; + default: + break; } } VK_Play_Speech_Line(kActorAnsweringMachine, 460, 0.5f); @@ -1085,6 +1093,8 @@ void VKScript::askLucy(int questionId) { VK_Play_Speech_Line(kActorMcCoy, 8538, 0.5f); } break; + default: + break; } } @@ -1360,6 +1370,8 @@ void VKScript::askGrigorian(int questionId) { VK_Play_Speech_Line(kActorGrigorian, 1160, 0.5f); VK_Subject_Reacts(5, -8, 7, 10); break; + default: + break; } } @@ -1734,6 +1746,8 @@ void VKScript::askDektora(int questionId) { VK_Subject_Reacts(99, 15, -4, 30); } break; + default: + break; } } @@ -2015,6 +2029,8 @@ void VKScript::askRunciter(int questionId) { VK_Play_Speech_Line(kActorMcCoy, 8435, 0.5f); // M: You're ready for the next one? VK_Play_Speech_Line(kActorRunciter, 1590, 0.5f); // R: Let's get this over with break; + default: + break; } } else { switch (questionId) { @@ -2192,6 +2208,8 @@ void VKScript::askRunciter(int questionId) { VK_Subject_Reacts(20, 10, 20, 0); VK_Play_Speech_Line(kActorRunciter, 1240, 0.5f); break; + default: + break; } } } @@ -2541,6 +2559,8 @@ void VKScript::askBulletBob(int questionId) { } VK_Subject_Reacts(30, 7, 7, 10); break; + default: + break; } } @@ -2561,6 +2581,8 @@ void VKScript::askCalibrationQuestion1(int actorId, int notUsed) { case kActorDektora: askDektora(7385); break; + default: + break; } } @@ -2581,6 +2603,8 @@ void VKScript::askCalibrationQuestion2(int actorId, int notUsed) { case kActorDektora: askDektora(7390); break; + default: + break; } } @@ -2601,6 +2625,8 @@ void VKScript::askCalibrationQuestion3(int actorId, int notUsed) { case kActorDektora: askDektora(7395); break; + default: + break; } } |