From 27d26a49ea20e67a179197e5607c4d40200b50d6 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 28 Nov 2019 02:10:52 +0000 Subject: TSAGE: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/tsage/ringworld/ringworld_scenes5.cpp | 103 ++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) (limited to 'engines/tsage/ringworld/ringworld_scenes5.cpp') diff --git a/engines/tsage/ringworld/ringworld_scenes5.cpp b/engines/tsage/ringworld/ringworld_scenes5.cpp index 93951370a9..0f869f03da 100644 --- a/engines/tsage/ringworld/ringworld_scenes5.cpp +++ b/engines/tsage/ringworld/ringworld_scenes5.cpp @@ -126,6 +126,8 @@ void Scene4000::Action1::signal() { g_globals->setFlag(96); g_globals->_sceneManager.changeScene(4025); break; + default: + break; } } @@ -183,6 +185,8 @@ void Scene4000::Action2::signal() { case 7: g_globals->_sceneManager.changeScene(4045); break; + default: + break; } } @@ -202,6 +206,8 @@ void Scene4000::Action3::signal() { scene->_hotspot8.remove(); remove(); break; + default: + break; } } @@ -241,6 +247,8 @@ void Scene4000::Action4::signal() { g_globals->setFlag(41); remove(); break; + default: + break; } } @@ -268,6 +276,8 @@ void Scene4000::Action5::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -306,6 +316,8 @@ void Scene4000::Action6::signal() { case 5: g_globals->_sceneManager.changeScene(4100); break; + default: + break; } } @@ -331,6 +343,8 @@ void Scene4000::Action7::signal() { case 2: g_globals->_sceneManager.changeScene(4050); break; + default: + break; } } @@ -372,6 +386,8 @@ void Scene4000::Action8::signal() { g_globals->_game->endGame(4000, 15); remove(); break; + default: + break; } } @@ -385,6 +401,8 @@ void Scene4000::Action9::signal() { static_cast(_owner)->animate(ANIM_MODE_8, 1, this); _actionIndex = 0; break; + default: + break; } } @@ -398,6 +416,8 @@ void Scene4000::Action10::signal() { static_cast(_owner)->animate(ANIM_MODE_8, 1, this); _actionIndex = 0; break; + default: + break; } } @@ -444,6 +464,8 @@ void Scene4000::Action11::signal() { case 6: g_globals->_sceneManager.changeScene(4250); break; + default: + break; } } @@ -486,6 +508,8 @@ void Scene4000::Action12::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -507,6 +531,8 @@ void Scene4000::Action13::signal() { scene->_soundHandler2.release(); g_globals->_sceneManager.changeScene(4010); break; + default: + break; } } @@ -1207,6 +1233,8 @@ void Scene4000::signal() { case 4015: ADD_MOVER_NULL(_miranda, 0, _miranda._position.y - 5); break; + default: + break; } } @@ -1371,6 +1399,9 @@ void Scene4025::Action1::signal() { g_globals->_events.setCursor(CURSOR_USE); remove(); break; + + default: + break; } } @@ -1415,6 +1446,8 @@ void Scene4025::Action2::signal() { g_globals->_events.setCursor(CURSOR_USE); remove(); break; + default: + break; } } @@ -1430,6 +1463,8 @@ void Scene4025::Action3::signal() { g_globals->_stripNum = 4025; g_globals->_sceneManager.changeScene(4000); break; + default: + break; } } @@ -1476,6 +1511,8 @@ void Scene4025::Hole::doAction(int action) { scene->setAction(&scene->_sequenceManager, scene, 4027, NULL); } break; + default: + break; } } @@ -1497,6 +1534,8 @@ void Scene4025::Peg::doAction(int action) { scene->_pegPtr = this; scene->setAction(&scene->_action1); break; + default: + break; } } @@ -1701,6 +1740,8 @@ void Scene4045::Action1::signal() { g_globals->_sceneManager.changeScene(4000); remove(); break; + default: + break; } } @@ -1731,6 +1772,8 @@ void Scene4045::Action2::signal() { g_globals->setFlag(39); g_globals->_sceneManager.changeScene(4000); break; + default: + break; } } @@ -1754,6 +1797,8 @@ void Scene4045::Action3::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -1977,6 +2022,8 @@ void Scene4045::stripCallback(int v) { case 2: _olloFace.animate(ANIM_MODE_NONE, NULL); break; + default: + break; } } @@ -1992,6 +2039,8 @@ void Scene4045::signal() { case 4102: g_globals->_player.enableControl(); break; + default: + break; } } @@ -2059,6 +2108,8 @@ void Scene4050::Action1::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2096,6 +2147,8 @@ void Scene4050::Action2::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2125,6 +2178,8 @@ void Scene4050::Action3::signal() { g_globals->_stripNum = 4050; g_globals->_sceneManager.changeScene(4000); break; + default: + break; } } @@ -2195,6 +2250,8 @@ void Scene4050::Action4::signal() { case 9: g_globals->_sceneManager.changeScene(4000); break; + default: + break; } } @@ -2379,6 +2436,8 @@ void Scene4100::Action1::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2409,6 +2468,8 @@ void Scene4100::Action2::signal() { case 3: remove(); break; + default: + break; } } @@ -2470,6 +2531,8 @@ void Scene4100::Action4::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2497,6 +2560,8 @@ void Scene4100::Action5::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2514,6 +2579,8 @@ void Scene4100::Action6::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2767,6 +2834,8 @@ void Scene4100::signal() { case 4109: g_globals->_player.enableControl(); break; + default: + break; } } @@ -2877,6 +2946,8 @@ void Scene4150::Action1::signal() { remove(); break; + default: + break; } } @@ -2905,6 +2976,8 @@ void Scene4150::Action2::signal() { case 3: remove(); break; + default: + break; } } @@ -2934,6 +3007,8 @@ void Scene4150::Action3::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -2949,6 +3024,8 @@ void Scene4150::HotspotGroup1::doAction(int action) { case OBJECT_ROPE: scene->setAction(&scene->_action3); break; + default: + break; } } @@ -2961,6 +3038,8 @@ void Scene4150::HotspotGroup3::doAction(int action) { case CURSOR_USE: SceneItem::display2(4150, 30); break; + default: + break; } } @@ -2973,6 +3052,8 @@ void Scene4150::HotspotGroup6::doAction(int action) { case CURSOR_USE: SceneItem::display2(4150, 31); break; + default: + break; } } @@ -3163,6 +3244,8 @@ void Scene4250::Action1::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -3219,6 +3302,8 @@ void Scene4250::Action2::signal() { g_globals->clearFlag(43); g_globals->_sceneManager.changeScene(2100); break; + default: + break; } } @@ -3236,6 +3321,8 @@ void Scene4250::Action3::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -3258,6 +3345,8 @@ void Scene4250::Action4::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -3288,6 +3377,8 @@ void Scene4250::Action5::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -3805,6 +3896,8 @@ void Scene4300::Action1::signal() { remove(); break; + default: + break; } } @@ -3822,6 +3915,8 @@ void Scene4300::Action2::signal() { g_globals->_player.enableControl(); remove(); break; + default: + break; } } @@ -3993,6 +4088,8 @@ void Scene4300::Hotspot17::doAction(int action) { scene->setAction(&scene->_sequenceManager, scene, 4303, this, NULL); break; + default: + break; } } @@ -4166,6 +4263,8 @@ void Scene4300::stripCallback(int v) { case 2: _hotspot12.hide(); break; + default: + break; } } @@ -4201,6 +4300,8 @@ void Scene4300::signal() { g_globals->_player.enableControl(); g_globals->_scenePalette.addRotation(240, 254, -1); break; + default: + break; } } @@ -4321,6 +4422,8 @@ void Scene4301::Action1::signal() { scene->_puzzleDone = true; remove(); break; + default: + break; } } -- cgit v1.2.3