diff options
-rw-r--r-- | engines/agos/event.cpp | 4 | ||||
-rw-r--r-- | engines/agos/script_ff.cpp | 2 |
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; } } |