diff options
author | D G Turner | 2019-12-01 21:41:21 +0000 |
---|---|---|
committer | D G Turner | 2019-12-01 21:41:21 +0000 |
commit | b7c397412dd2cd5aa81723fa31d9e13ee83e1493 (patch) | |
tree | b66ad2c612f20719459d55c403b57d02cc006bde /engines/pegasus/ai | |
parent | 64eb072103dcb4789858470ac9d40d4c6f3b8841 (diff) | |
download | scummvm-rg350-b7c397412dd2cd5aa81723fa31d9e13ee83e1493.tar.gz scummvm-rg350-b7c397412dd2cd5aa81723fa31d9e13ee83e1493.tar.bz2 scummvm-rg350-b7c397412dd2cd5aa81723fa31d9e13ee83e1493.zip |
PEGASUS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/pegasus/ai')
-rw-r--r-- | engines/pegasus/ai/ai_area.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/pegasus/ai/ai_area.cpp b/engines/pegasus/ai/ai_area.cpp index 58698e6c77..34ca93e4e9 100644 --- a/engines/pegasus/ai/ai_area.cpp +++ b/engines/pegasus/ai/ai_area.cpp @@ -197,6 +197,8 @@ void AIArea::setAIAreaToTime(const LowerClientSignature client, const LowerAreaS setRightMovieTime(time); } break; + default: + break; } } @@ -269,6 +271,8 @@ void AIArea::playAIAreaSequence(const LowerClientSignature, const LowerAreaSigna vm->_cursor->hideUntilMoved(); setAIAreaToTime(_rightAreaOwner, kRightAreaSignature, _rightBiochipTime); break; + default: + break; } unlockAI(); @@ -454,6 +458,8 @@ void AIArea::activateHotspots() { case kOpticalBiochip: ((OpticalChip *)currentBiochip)->activateOpticalHotspots(); break; + default: + break; } } else if (_middleAreaOwner == kInventorySignature) { InventoryItem *currentItem = ((PegasusEngine *)g_engine)->getCurrentInventoryItem(); @@ -492,6 +498,8 @@ void AIArea::clickInHotspot(const Input &input, const Hotspot *hotspot) { handled = true; } break; + default: + break; } } } else if (_middleAreaOwner == kInventorySignature) { @@ -505,6 +513,8 @@ void AIArea::clickInHotspot(const Input &input, const Hotspot *hotspot) { handled = true; } break; + default: + break; } } } @@ -569,6 +579,8 @@ void AIArea::checkMiddleArea() { case kPegasusBiochip: ((PegasusChip *)currentBiochip)->setUpPegasusChip(); break; + default: + break; } } else { switch (currentBiochip->getObjectID()) { @@ -578,6 +590,8 @@ void AIArea::checkMiddleArea() { case kPegasusBiochip: ((PegasusChip *)currentBiochip)->setUpPegasusChipRude(); break; + default: + break; } } } |