diff options
author | D G Turner | 2019-12-01 00:31:33 +0000 |
---|---|---|
committer | D G Turner | 2019-12-01 00:31:33 +0000 |
commit | 719decda5545af100defe6faadaa919004d3c8af (patch) | |
tree | bb5a0c905d11097c915d10505fa9d51ec9a38e3f /engines/supernova/supernova2/state.cpp | |
parent | f80947183c16e4be5f651f0ba2202446faf1ba8b (diff) | |
download | scummvm-rg350-719decda5545af100defe6faadaa919004d3c8af.tar.gz scummvm-rg350-719decda5545af100defe6faadaa919004d3c8af.tar.bz2 scummvm-rg350-719decda5545af100defe6faadaa919004d3c8af.zip |
SUPERNOVA: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/supernova/supernova2/state.cpp')
-rw-r--r-- | engines/supernova/supernova2/state.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/supernova/supernova2/state.cpp b/engines/supernova/supernova2/state.cpp index 28a2c0a710..e61d4e1779 100644 --- a/engines/supernova/supernova2/state.cpp +++ b/engines/supernova/supernova2/state.cpp @@ -824,6 +824,8 @@ void GameManager2::taxiPayment(int price, int destination) { case 11: changeRoom(CITY2); break; + default: + break; } } } @@ -1065,6 +1067,8 @@ void GameManager2::passageConstruction() { _rooms[PYR_ENTRANCE]->setSectionVisible(21, kShownTrue); _rooms[PYR_ENTRANCE]->getObject(0)->_click = 9; break; + default: + break; } } _rooms[PYR_ENTRANCE]->setSectionVisible(9, @@ -1158,6 +1162,8 @@ byte GameManager2::wall(int s, int z, int direction, int stepsForward, int steps return wall(s + stepsForward, z, newR, stepsRight, 0); case 3: return wall(s - stepsForward, z, newR, stepsRight, 0); + default: + break; } } switch (direction) { @@ -1169,6 +1175,8 @@ byte GameManager2::wall(int s, int z, int direction, int stepsForward, int steps return horizontal[_state._pyraE][z][s + stepsForward] == 0; case 3: return horizontal[_state._pyraE][z][s + 1 - stepsForward] == 0; + default: + break; } return 0; } @@ -1188,6 +1196,8 @@ bool GameManager2::move(Action verb, Object &obj) { case 3: _state._pyraS--; break; + default: + break; } } else if (verb == ACTION_WALK && obj._id == G_RIGHT) { _state._pyraDirection++; |