diff options
author | D G Turner | 2019-11-30 23:50:44 +0000 |
---|---|---|
committer | D G Turner | 2019-11-30 23:50:44 +0000 |
commit | c2149c042e03930fea0eaed252a630ca63ec6af6 (patch) | |
tree | 15f2f3c6135bbb30b491967145a690d66ad59b94 /engines/titanic/true_talk | |
parent | b25c4b21fdd6f911b94fb411087078ecf756691e (diff) | |
download | scummvm-rg350-c2149c042e03930fea0eaed252a630ca63ec6af6.tar.gz scummvm-rg350-c2149c042e03930fea0eaed252a630ca63ec6af6.tar.bz2 scummvm-rg350-c2149c042e03930fea0eaed252a630ca63ec6af6.zip |
TITANIC: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/barbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/bellbot_script.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/true_talk/liftbot_script.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/true_talk/maitred_script.cpp | 5 |
5 files changed, 15 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/barbot_script.cpp b/engines/titanic/true_talk/barbot_script.cpp index 241976f9cf..b9f3e3aff8 100644 --- a/engines/titanic/true_talk/barbot_script.cpp +++ b/engines/titanic/true_talk/barbot_script.cpp @@ -851,6 +851,8 @@ ScriptChangedResult BarbotScript::scriptChanged(const TTroomScript *roomScript, addResponse(getDialogueId(250579)); break; + default: + break; } if (id >= 250000 && id <= 251900) { diff --git a/engines/titanic/true_talk/bellbot_script.cpp b/engines/titanic/true_talk/bellbot_script.cpp index 46c57750f8..561cbd2595 100644 --- a/engines/titanic/true_talk/bellbot_script.cpp +++ b/engines/titanic/true_talk/bellbot_script.cpp @@ -156,6 +156,9 @@ int BellbotScript::process(const TTroomScript *roomScript, const TTsentence *sen result = processEntries(&_sentences[getValue(6) ? 5 : 4], 0, roomScript, sentence); } break; + + default: + break; } if (result == 2) diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp index 3988002f07..1632df26ef 100644 --- a/engines/titanic/true_talk/deskbot_script.cpp +++ b/engines/titanic/true_talk/deskbot_script.cpp @@ -175,6 +175,9 @@ ScriptChangedResult DeskbotScript::scriptChanged(const TTroomScript *roomScript, case 150: CTrueTalkManager::setFlags(2, 1); break; + + default: + break; } return SCR_2; diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index 6dfa8d88db..9afbf5f3cb 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -320,6 +320,8 @@ int LiftbotScript::handleQuote(const TTroomScript *roomScript, const TTsentence case MKTAG('T', 'R', 'A', '3'): tag2 = MKTAG('T', 'R', 'A', 'V'); break; + default: + break; } return TTnpcScript::handleQuote(roomScript, sentence, tag1, tag2, remainder); diff --git a/engines/titanic/true_talk/maitred_script.cpp b/engines/titanic/true_talk/maitred_script.cpp index 99e9c04384..6c212cb7d6 100644 --- a/engines/titanic/true_talk/maitred_script.cpp +++ b/engines/titanic/true_talk/maitred_script.cpp @@ -484,6 +484,8 @@ int MaitreDScript::handleQuote(const TTroomScript *roomScript, const TTsentence case MKTAG('T', 'R', 'A', '3'): tag2 = MKTAG('T', 'R', 'A', 'V'); break; + default: + break; } return TTnpcScript::handleQuote(roomScript, sentence, tag1, tag2, remainder); @@ -1062,6 +1064,9 @@ int MaitreDScript::preprocess(const TTroomScript *roomScript, const TTsentence * applyFlag = true; } break; + + default: + break; } if (applyFlag) |