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/computer.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/computer.cpp')
-rw-r--r-- | engines/hopkins/computer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp index aff3c914f6..7616b3573e 100644 --- a/engines/hopkins/computer.cpp +++ b/engines/hopkins/computer.cpp @@ -229,6 +229,8 @@ void ComputerManager::showComputer(ComputerEnum mode) { case '5': readText(4); break; + default: + break; } } else if (mode == COMPUTER_SAMANTHA) { clearScreen(); @@ -253,6 +255,8 @@ void ComputerManager::showComputer(ComputerEnum mode) { readText(10); _vm->_globals->_saveData->_data[svField270] = 4; break; + default: + break; } } } @@ -501,6 +505,8 @@ void ComputerManager::readText(int idx) { case LANG_SP: filename = "THOPKES.TXT"; break; + default: + break; } byte *ptr = _vm->_fileIO->loadFile(filename); @@ -713,6 +719,8 @@ void ComputerManager::displayBricks() { case 31: _vm->_graphicsMan->fastDisplay2(_breakoutSpr, cellLeft, cellTop, 23); break; + default: + break; } } @@ -1070,6 +1078,8 @@ int ComputerManager::moveBall() { _minBreakoutMoveSpeed = 3; _maxBreakoutMoveSpeed = 2; break; + default: + break; } int moveSpeed = _minBreakoutMoveSpeed; @@ -1242,6 +1252,8 @@ void ComputerManager::checkBallCollisions() { case 6: _breakoutScore += 40; break; + default: + break; } displayScore(); --_breakoutBrickNbr; |