diff options
author | D G Turner | 2019-10-23 23:42:38 +0100 |
---|---|---|
committer | D G Turner | 2019-10-23 23:42:38 +0100 |
commit | 0386fd0eea6df3688cd4da988d7c1b3a377b1240 (patch) | |
tree | bbff3ae0965bf9f7cd8ad30dbae2032db262bb51 /engines/hopkins/objects.cpp | |
parent | e15428c43fc62f3e139d6b97e61624941f7e08ba (diff) | |
download | scummvm-rg350-0386fd0eea6df3688cd4da988d7c1b3a377b1240.tar.gz scummvm-rg350-0386fd0eea6df3688cd4da988d7c1b3a377b1240.tar.bz2 scummvm-rg350-0386fd0eea6df3688cd4da988d7c1b3a377b1240.zip |
HOPKINS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/hopkins/objects.cpp')
-rw-r--r-- | engines/hopkins/objects.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index d67cd7b60c..95dd47a9e6 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -2280,6 +2280,8 @@ void ObjectsManager::changeCharacterHead(PlayerCharacter oldCharacter, PlayerCha _vm->_globals->_saveData->_data[svField357] = 0; _vm->_globals->_exitId = _vm->_globals->_saveData->_samantha._location; break; + default: + break; } } } @@ -2770,6 +2772,8 @@ void ObjectsManager::handleSpecialGames() { _vm->_globals->_saveData->_data[svField333] = 1; _vm->_globals->_disableInventFl = false; break; + default: + break; } } @@ -2863,6 +2867,8 @@ void ObjectsManager::doActionBack(int idx) { case 10: showSpecialActionAnimation(_gestureBuf, "23,22,21,20,19,18,17,16,15,-1,", 8); break; + default: + break; } } @@ -2904,6 +2910,8 @@ void ObjectsManager::doActionRight(int idx) { case 10: showSpecialActionAnimation(_gestureBuf, "28,27,26,25,24,23,-1,", 8); break; + default: + break; } } @@ -2945,6 +2953,8 @@ void ObjectsManager::doActionDiagRight(int idx) { case 10: showSpecialActionAnimation(_gestureBuf, "20,19,18,17,15,-1,", 8); break; + default: + break; } } @@ -2968,6 +2978,8 @@ void ObjectsManager::doActionFront(int idx) { case 4: showActionAnimation(_gestureBuf, "0,1,2,3,4,5,6,7,9,10,11,12,13,14,13,12,11,10,9,7,6,5,4,3,2,1,0,-1,", 8, false); break; + default: + break; } } @@ -3009,6 +3021,8 @@ void ObjectsManager::doActionDiagLeft(int idx) { case 10: showSpecialActionAnimation(_gestureBuf, "20,19,18,17,15,-1,", 8); break; + default: + break; } } @@ -3050,6 +3064,8 @@ void ObjectsManager::doActionLeft(int idx) { case 10: showSpecialActionAnimation(_gestureBuf, "28,27,26,25,24,23,-1,", 8); break; + default: + break; } } @@ -3375,6 +3391,9 @@ void ObjectsManager::sceneSpecialIni() { if (!_vm->_globals->_saveData->_data[svField333]) setBobAnimation(8); break; + + default: + break; } } @@ -3450,6 +3469,8 @@ void ObjectsManager::disableVerb(int idx, int a2) { case 15: curZone->_verbFl10 = 0; break; + default: + break; } _changeVerbFl = true; } @@ -3518,6 +3539,8 @@ void ObjectsManager::enableVerb(int idx, int a2) { case 25: curZone->_verbFl9 = 2; break; + default: + break; } } @@ -3692,6 +3715,8 @@ void ObjectsManager::handleForest(int screenId, int minX, int maxX, int minY, in else savegameIdx = 212; break; + default: + break; } if (_vm->_globals->_saveData->_data[savegameIdx] == 2) @@ -3884,6 +3909,8 @@ void ObjectsManager::sceneControl2(const Common::String &backgroundFile, const C case CHARACTER_SAMANTHA: addStaticSprite(_vm->_globals->_characterSpriteBuf, _characterPos, 0, _startSpriteIndex, 0, false, 20, 127); break; + default: + break; } _vm->_events->setMouseXY(_characterPos); if (_vm->_graphicsMan->_largeScreenFl) |