diff options
author | D G Turner | 2019-11-09 05:42:33 +0000 |
---|---|---|
committer | D G Turner | 2019-11-09 05:42:33 +0000 |
commit | fbb60c6d8997bcaf671a52ca114bbb3d6293b43b (patch) | |
tree | 2ed65d07b7acc90303288136872977067d70e421 /engines/touche/touche.cpp | |
parent | fd2f01fddaf51bbe8e2d162035f0889703549c57 (diff) | |
download | scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.tar.gz scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.tar.bz2 scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.zip |
TOUCHE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r-- | engines/touche/touche.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index e8a867a96a..4bc8822619 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -338,6 +338,8 @@ void ToucheEngine::writeConfigurationSettings() { ConfMan.setBool("speech_mute", false); ConfMan.setBool("subtitles", true); break; + default: + break; } ConfMan.setInt("music_volume", getMusicVolume()); ConfMan.flushToDisk(); @@ -851,6 +853,8 @@ void ToucheEngine::setKeyCharFrame(int keyChar, int16 type, int16 value1, int16 key->anim3Start = value1; key->anim3Count = value2; break; + default: + break; } } @@ -1612,6 +1616,8 @@ void ToucheEngine::handleLeftMouseButtonClickOnInventory() { drawInventory(_objectDescriptionNum, 1); } break; + default: + break; } } break; @@ -1699,6 +1705,8 @@ void ToucheEngine::handleMouseClickOnRoom(int flag) { } } break; + default: + break; } if (_giveItemToCounter == 0 && !_hideInventoryTexts) { if (hitBox->contains(hitPosX, hitPosY)) { @@ -2098,6 +2106,8 @@ void ToucheEngine::updateRoomRegions() { } i += _programAreaTable[i].animCount + 1; break; + default: + break; } } } @@ -2778,6 +2788,8 @@ void ToucheEngine::adjustKeyCharPosToWalkBox(KeyChar *key, int moveType) { key->yPos = dy * kz / dz + y1; } break; + default: + break; } } @@ -3057,6 +3069,8 @@ void ToucheEngine::updateKeyCharWalkPath(KeyChar *key, int16 dx, int16 dy, int16 } } break; + default: + break; } } |