diff options
author | D G Turner | 2019-10-17 15:47:32 +0100 |
---|---|---|
committer | D G Turner | 2019-10-17 15:47:32 +0100 |
commit | 9bc03dc117bcb65a7f0becca75df523dab03ee63 (patch) | |
tree | 9eb2686a953f70dbb4aba9b0fb6ef05c5e624b23 /engines/cryo | |
parent | 4a41260955a9b33cbec5082ae3505d2105c8fffc (diff) | |
download | scummvm-rg350-9bc03dc117bcb65a7f0becca75df523dab03ee63.tar.gz scummvm-rg350-9bc03dc117bcb65a7f0becca75df523dab03ee63.tar.bz2 scummvm-rg350-9bc03dc117bcb65a7f0becca75df523dab03ee63.zip |
CRYO: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/cryo')
-rw-r--r-- | engines/cryo/eden.cpp | 13 | ||||
-rw-r--r-- | engines/cryo/eden_graphics.cpp | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp index 247754c8ac..4753a347b7 100644 --- a/engines/cryo/eden.cpp +++ b/engines/cryo/eden.cpp @@ -1716,6 +1716,8 @@ void EdenGame::vivredino() { perso->_steps = 1; } break; + default: + break; } } } @@ -2322,6 +2324,8 @@ void EdenGame::my_bulle() { case 2: _globals->_giveObj3 = c2; break; + default: + break; } _globals->_numGiveObjs++; *icons++ = *textPtr++; @@ -5452,6 +5456,8 @@ void EdenGame::confirmYes() { case 2: reallyquit(); break; + default: + break; } } @@ -5846,6 +5852,8 @@ void EdenGame::perso_ici(int16 action) { case 5: rangermammi(perso, _globals->_lastAreaPtr->_citadelRoomPtr); break; + default: + break; } perso = _persons; do { @@ -5866,6 +5874,8 @@ void EdenGame::perso_ici(int16 action) { case 5: rangermammi(perso, _globals->_lastAreaPtr->_citadelRoomPtr); break; + default: + break; } } perso++; @@ -7339,6 +7349,8 @@ void EdenGame::Eden_dep_and_rot() { _rotationAngleX = 0; _translationZ = Z_RESET; break; + default: + break; } } @@ -7809,6 +7821,7 @@ void EdenGame::enginePC() { int step = _pcCursor->_speed; switch (_pcCursor->_kind) { case 0: + default: break; case 1: // rot up-down decAngleY(); diff --git a/engines/cryo/eden_graphics.cpp b/engines/cryo/eden_graphics.cpp index cec2a0af3b..b4a8817a0b 100644 --- a/engines/cryo/eden_graphics.cpp +++ b/engines/cryo/eden_graphics.cpp @@ -885,6 +885,7 @@ void EdenGraphics::displayEffect2() { colimacon(pattern3); break; case 4: + default: colimacon(pattern4); eff2pat = 0; break; |