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/neighborhood/prehistoric/prehistoric.cpp | |
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/neighborhood/prehistoric/prehistoric.cpp')
-rw-r--r-- | engines/pegasus/neighborhood/prehistoric/prehistoric.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp index 9f8f69852d..5911f62745 100644 --- a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp +++ b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp @@ -191,6 +191,8 @@ TimeValue Prehistoric::getViewTime(const RoomID room, const DirectionConstant di extraID = kPre25EastViewNoLog; } break; + default: + break; } if (extraID == 0xffffffff) @@ -221,6 +223,8 @@ void Prehistoric::findSpotEntry(const RoomID room, const DirectionConstant direc else GameState.setPrehistoricSeenFlyer2(true); break; + default: + break; } } @@ -261,6 +265,8 @@ void Prehistoric::getExitCompassMove(const ExitTable::Entry &exitEntry, FaderMov compassMove.insertFaderKnot(exitEntry.movieStart + kPrehistoricFrameDuration * 32, angle - 90); compassMove.insertFaderKnot(exitEntry.movieEnd, angle - 90); break; + default: + break; } } @@ -304,6 +310,8 @@ void Prehistoric::turnTo(const DirectionConstant newDirection) { playSpotSoundSync(kPrehistoricFlashlightClickIn, kPrehistoricFlashlightClickOut); } break; + default: + break; } } @@ -321,6 +329,8 @@ void Prehistoric::checkContinuePoint(const RoomID room, const DirectionConstant case MakeRoomView(kPrehistoric25, kNorth): makeContinuePoint(); break; + default: + break; } } @@ -397,6 +407,8 @@ void Prehistoric::arriveAt(const RoomID room, const DirectionConstant direction) case MakeRoomView(kPrehistoric25, kEast): setCurrentActivation(kActivationVaultClosed); break; + default: + break; } } @@ -457,6 +469,8 @@ void Prehistoric::loadAmbientLoops() { // 0 volume. loadLoopSound1(""); break; + default: + break; } switch (room) { @@ -508,6 +522,8 @@ void Prehistoric::loadAmbientLoops() { else loadLoopSound2("Sounds/Prehistoric/P24NAL00.22k.AIFF", 64); break; + default: + break; } } @@ -522,6 +538,8 @@ void Prehistoric::activateHotspots() { case MakeRoomView(kPrehistoric22North, kNorth): _vm->getAllHotspots().activateOneHotspot(kPre22NorthBreakerSpotID); break; + default: + break; } } @@ -580,6 +598,8 @@ void Prehistoric::receiveNotification(Notification *notification, const Notifica case kPre25EastUnlockingVaultWithLog: _vm->addItemToInventory((InventoryItem *)_vm->getAllItems().findItemByID(kJourneymanKey)); break; + default: + break; } } @@ -605,6 +625,8 @@ Common::String Prehistoric::getEnvScanMovie() { case kPrehistoric23: case kPrehistoric24: return "Images/AI/Prehistoric/XP7WB"; + default: + break; } } @@ -628,6 +650,8 @@ uint Prehistoric::getNumHints() { if (!_privateFlags.getFlag(kPrehistoricPrivateVaultOpenFlag)) numHints = 1; break; + default: + break; } } @@ -643,6 +667,8 @@ Common::String Prehistoric::getHintMovie(uint hintNum) { return "Images/AI/Prehistoric/XP18WD"; case MakeRoomView(kPrehistoric25, kEast): return "Images/AI/Globals/XGLOB1A"; + default: + break; } } @@ -673,6 +699,8 @@ void Prehistoric::pickedUpItem(Item *item) { case kHistoricalLog: GameState.setScoringGotHistoricalLog(true); break; + default: + break; } Neighborhood::pickedUpItem(item); |