diff options
author | D G Turner | 2019-11-28 02:10:52 +0000 |
---|---|---|
committer | D G Turner | 2019-11-28 02:10:52 +0000 |
commit | 27d26a49ea20e67a179197e5607c4d40200b50d6 (patch) | |
tree | db6cb94be61db41689750d03ea71618153c3c599 /engines/tsage/blue_force | |
parent | 2f8bf11a434f7126e01a1695a76bcec65116c1d5 (diff) | |
download | scummvm-rg350-27d26a49ea20e67a179197e5607c4d40200b50d6.tar.gz scummvm-rg350-27d26a49ea20e67a179197e5607c4d40200b50d6.tar.bz2 scummvm-rg350-27d26a49ea20e67a179197e5607c4d40200b50d6.zip |
TSAGE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/tsage/blue_force')
-rw-r--r-- | engines/tsage/blue_force/blueforce_dialogs.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes0.cpp | 13 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes1.cpp | 8 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes2.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes3.cpp | 18 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes4.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes5.cpp | 10 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes6.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes8.cpp | 10 |
9 files changed, 67 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_dialogs.cpp b/engines/tsage/blue_force/blueforce_dialogs.cpp index 99db61b64d..59489f22b8 100644 --- a/engines/tsage/blue_force/blueforce_dialogs.cpp +++ b/engines/tsage/blue_force/blueforce_dialogs.cpp @@ -187,6 +187,8 @@ void RightClickDialog::execute() { // Options dialog BlueForce::OptionsDialog::show(); break; + default: + break; } if (cursorNum != CURSOR_NONE) diff --git a/engines/tsage/blue_force/blueforce_scenes0.cpp b/engines/tsage/blue_force/blueforce_scenes0.cpp index 0143613d3f..2b96ce6a80 100644 --- a/engines/tsage/blue_force/blueforce_scenes0.cpp +++ b/engines/tsage/blue_force/blueforce_scenes0.cpp @@ -114,6 +114,8 @@ void Scene20::Action1::signal() { BF_GLOBALS._sceneManager.changeScene(100); remove(); break; + default: + break; } } @@ -535,6 +537,8 @@ bool Scene60::Ignition::startAction(CursorType action, Event &event) { case 2: if (BF_GLOBALS.getFlag(onDuty) && check2()) return true; + default: + break; } BF_GLOBALS._sound1.play(BF_GLOBALS.getFlag(fWithLyle) ? 80 : 31); @@ -898,6 +902,8 @@ void Scene60::Action1::signal() { _actionIndex = 4; scene->_stripManager.start(633, this); break; + default: + break; } } @@ -923,6 +929,8 @@ void Scene60::Action2::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -945,6 +953,8 @@ void Scene60::Action3::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -1110,6 +1120,9 @@ void Scene60::postInit(SceneObjectList *OwnerList) { (BF_GLOBALS._bookmark < bInspectionDone)) { setAction(&_action3); } + break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes1.cpp b/engines/tsage/blue_force/blueforce_scenes1.cpp index ff67f52718..0b71ab788e 100644 --- a/engines/tsage/blue_force/blueforce_scenes1.cpp +++ b/engines/tsage/blue_force/blueforce_scenes1.cpp @@ -81,6 +81,8 @@ void Scene100::Action1::signal() { case 4: error("??exit"); break; + default: + break; } } @@ -158,6 +160,8 @@ void Scene100::Action2::signal() { case 3: remove(); break; + default: + break; } } @@ -282,6 +286,8 @@ void Scene109::Action1::signal() { scene->_sceneMode = 1; remove(); break; + default: + break; } } @@ -3188,6 +3194,8 @@ void Scene190::Action1::signal() { BF_GLOBALS._sound1.fadeOut2(NULL); BF_GLOBALS._sceneManager.changeScene(315); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes2.cpp b/engines/tsage/blue_force/blueforce_scenes2.cpp index 65ff85155f..06c7fb054d 100644 --- a/engines/tsage/blue_force/blueforce_scenes2.cpp +++ b/engines/tsage/blue_force/blueforce_scenes2.cpp @@ -1812,6 +1812,8 @@ void Scene280::Action1::signal() { scene->_jake.remove(); scene->_mum.animate(ANIM_MODE_5, NULL); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes3.cpp b/engines/tsage/blue_force/blueforce_scenes3.cpp index 301d8d42e5..0c1b370423 100644 --- a/engines/tsage/blue_force/blueforce_scenes3.cpp +++ b/engines/tsage/blue_force/blueforce_scenes3.cpp @@ -960,6 +960,8 @@ void Scene315::Action1::signal() { remove(); BF_GLOBALS._player.enableControl(); break; + default: + break; } } @@ -1908,6 +1910,8 @@ void Scene340::Action6::signal() { scene->signal(); remove(); break; + default: + break; } } @@ -3448,6 +3452,8 @@ void Scene355::Action2::signal() { scene->signal(); remove(); break; + default: + break; } } @@ -5063,6 +5069,8 @@ void Scene370::signal() { _green.remove(); BF_GLOBALS._player.enableControl(); break; + default: + break; } } @@ -5277,6 +5285,8 @@ void Scene385::Action1::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -5309,6 +5319,8 @@ void Scene385::Action2::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -5525,6 +5537,8 @@ void Scene385::signal() { case 3852: BF_GLOBALS._player.enableControl(); break; + default: + break; } } @@ -5611,6 +5625,8 @@ void Scene390::Action1::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -5969,6 +5985,8 @@ void Scene390::signal() { BF_GLOBALS._deathReason = 18; BF_GLOBALS._sceneManager.changeScene(666); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes4.cpp b/engines/tsage/blue_force/blueforce_scenes4.cpp index 7c5b41092c..5009b6e854 100644 --- a/engines/tsage/blue_force/blueforce_scenes4.cpp +++ b/engines/tsage/blue_force/blueforce_scenes4.cpp @@ -1343,6 +1343,8 @@ void Scene440::signal() { case 4403: BF_GLOBALS._sceneManager.changeScene(60); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes5.cpp b/engines/tsage/blue_force/blueforce_scenes5.cpp index 629d00dc4d..9ef5e0dadf 100644 --- a/engines/tsage/blue_force/blueforce_scenes5.cpp +++ b/engines/tsage/blue_force/blueforce_scenes5.cpp @@ -49,6 +49,8 @@ void Scene550::Action1::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -418,6 +420,8 @@ bool Scene551::Drunk::startAction(CursorType action, Event &event) { case 3: SceneItem::display2(550, 27); break; + default: + break; } return true; case CURSOR_USE: @@ -1534,6 +1538,8 @@ void Scene560::signal() { case 11: BF_GLOBALS._sceneManager.changeScene(270); break; + default: + break; } } @@ -1876,6 +1882,8 @@ bool Scene570::Icon::startAction(CursorType action, Event &event) { scene->_sceneMode = 5704; scene->setAction(&scene->_sequenceManager, scene, 5704, &scene->_object3, NULL); break; + default: + break; } return true; case CURSOR_TALK: @@ -2417,6 +2425,8 @@ void Scene590::Action2::signal() { scene->_sceneMode = 3; scene->signal(); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes6.cpp b/engines/tsage/blue_force/blueforce_scenes6.cpp index 921b2c89d0..b18459a0c0 100644 --- a/engines/tsage/blue_force/blueforce_scenes6.cpp +++ b/engines/tsage/blue_force/blueforce_scenes6.cpp @@ -258,6 +258,8 @@ void Scene666::Action1::signal() { case 1: BF_GLOBALS._game->restartGame(); break; + default: + break; } } diff --git a/engines/tsage/blue_force/blueforce_scenes8.cpp b/engines/tsage/blue_force/blueforce_scenes8.cpp index ea0f93f81a..51f9a9a25b 100644 --- a/engines/tsage/blue_force/blueforce_scenes8.cpp +++ b/engines/tsage/blue_force/blueforce_scenes8.cpp @@ -214,6 +214,8 @@ void Scene800::Action1::signal() { BF_GLOBALS._player.enableControl(); remove(); break; + default: + break; } } @@ -345,6 +347,8 @@ void Scene800::signal() { _lyle.remove(); BF_GLOBALS._player.enableControl(); break; + default: + break; } } @@ -1720,6 +1724,8 @@ void Scene830::postInit(SceneObjectList *OwnerList) { _field18AC = 1; } break; + default: + break; } _item2.setDetails(7, 830, 9, 10, 11, 1); @@ -1877,6 +1883,8 @@ void Scene830::signal() { _object1.remove(); BF_GLOBALS._player.enableControl(); break; + default: + break; } } @@ -2505,6 +2513,8 @@ void Scene840::signal() { BF_INVENTORY.setObjectScene(INV_RENTAL_KEYS, 0); BF_GLOBALS._player.enableControl(); break; + default: + break; } } |