aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene04.cpp
diff options
context:
space:
mode:
authorD G Turner2019-11-14 02:44:19 +0000
committerD G Turner2019-11-14 02:44:19 +0000
commit9190f6e1c8047446dd9c9c70525bc0e855cbe8dc (patch)
tree346b6730967544ef5b7efd05463853073b712c7a /engines/fullpipe/scenes/scene04.cpp
parent25a12ad89a96b8373760728b9aefb58f8530fac2 (diff)
downloadscummvm-rg350-9190f6e1c8047446dd9c9c70525bc0e855cbe8dc.tar.gz
scummvm-rg350-9190f6e1c8047446dd9c9c70525bc0e855cbe8dc.tar.bz2
scummvm-rg350-9190f6e1c8047446dd9c9c70525bc0e855cbe8dc.zip
FULLPIPE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled. Also, do minor fixes for readability to switch statements.
Diffstat (limited to 'engines/fullpipe/scenes/scene04.cpp')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 59adf37c66..6585001269 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -1083,8 +1083,8 @@ void sceneHandler04_startSounds(const char *snd1, const char *snd2, const char *
void updateSound() {
switch (g_vars->scene04_musicStage) {
case 0:
- return;
-
+ default:
+ break;
case 1:
if (!g_fp->_mixer->isSoundHandleActive(g_fp->_soundStream2)) {
g_fp->playOggSound("sc4_loop.ogg", g_fp->_soundStream3);
@@ -1506,6 +1506,7 @@ int sceneHandler04(ExCommand *ex) {
return res;
}
+ break;
case 29:
{
@@ -1552,7 +1553,6 @@ int sceneHandler04(ExCommand *ex) {
}
}
}
-
break;
case MSG_SC4_HIDEBOOT:
@@ -1585,7 +1585,6 @@ int sceneHandler04(ExCommand *ex) {
sceneHandler04_handTake();
}
-
break;
case MSG_SC4_KOZAWFALL:
@@ -1605,8 +1604,8 @@ int sceneHandler04(ExCommand *ex) {
exnew->_z = 5;
exnew->_excFlags |= 2;
exnew->postMessage();
- break;
}
+ break;
case MSG_SC4_MANFROMBOTTLE:
sceneHandler04_manFromBottle();
@@ -1635,6 +1634,9 @@ int sceneHandler04(ExCommand *ex) {
case MSG_SC4_COINPUT:
g_vars->scene04_coinPut = true;
break;
+
+ default:
+ break;
}
updateSound();