aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorD G Turner2019-11-11 21:47:17 +0000
committerD G Turner2019-11-11 21:47:17 +0000
commit95ed614f5f0e19d7a2c1cada56d8ba211a401c63 (patch)
tree13bbb4fcb1cf5a8224772eee2d8d35ba362fd635 /engines/agos
parent1d548cd1e8b98b2bdff76fc8625ea7a51a67070f (diff)
downloadscummvm-rg350-95ed614f5f0e19d7a2c1cada56d8ba211a401c63.tar.gz
scummvm-rg350-95ed614f5f0e19d7a2c1cada56d8ba211a401c63.tar.bz2
scummvm-rg350-95ed614f5f0e19d7a2c1cada56d8ba211a401c63.zip
AGOS: Fix Missing Default Switch Cases when AGOS2 is enabled
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/event.cpp4
-rw-r--r--engines/agos/script_ff.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp
index b70ec674dd..62d59ca56b 100644
--- a/engines/agos/event.cpp
+++ b/engines/agos/event.cpp
@@ -695,11 +695,13 @@ void AGOSEngine_DIMP::dimpIdle() {
while (z == 0) {
n = _rnd.getRandomNumber(2);
switch (n) {
+ default:
case(0):
if (_variableArray[110] > 2)
break;
n = _rnd.getRandomNumber(6);
switch (n) {
+ default:
case(0): loadSoundFile("And01.wav");break;
case(1): loadSoundFile("And02.wav");break;
case(2): loadSoundFile("And03.wav");break;
@@ -715,6 +717,7 @@ void AGOSEngine_DIMP::dimpIdle() {
break;
n = _rnd.getRandomNumber(6);
switch (n) {
+ default:
case(0): loadSoundFile("And08.wav");break;
case(1): loadSoundFile("And09.wav");break;
case(2): loadSoundFile("And0a.wav");break;
@@ -730,6 +733,7 @@ void AGOSEngine_DIMP::dimpIdle() {
break;
n = _rnd.getRandomNumber(4);
switch (n) {
+ default:
case(0): loadSoundFile("And0f.wav");break;
case(1): loadSoundFile("And0g.wav");break;
case(2): loadSoundFile("And0h.wav");break;
diff --git a/engines/agos/script_ff.cpp b/engines/agos/script_ff.cpp
index 10c9e995d4..bd97bd649c 100644
--- a/engines/agos/script_ff.cpp
+++ b/engines/agos/script_ff.cpp
@@ -328,6 +328,8 @@ void AGOSEngine_Feeble::setLoyaltyRating(byte rating) {
// Arriving at rebel base: Freedom Fighters Operative
writeVariable(120, 6);
break;
+ default:
+ break;
}
}