aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene07.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/scene07.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/scene07.cpp')
-rw-r--r--engines/fullpipe/scenes/scene07.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/fullpipe/scenes/scene07.cpp b/engines/fullpipe/scenes/scene07.cpp
index 14ee5f1daa..4ad4998c44 100644
--- a/engines/fullpipe/scenes/scene07.cpp
+++ b/engines/fullpipe/scenes/scene07.cpp
@@ -126,11 +126,11 @@ int sceneHandler07(ExCommand *ex) {
break;
case MSG_SC7_PULL:
- if (g_vars->scene07_plusMinus->_statics->_staticsId == ST_PMS_MINUS)
+ if (g_vars->scene07_plusMinus->_statics->_staticsId == ST_PMS_MINUS) {
g_vars->scene07_plusMinus->_statics = g_vars->scene07_plusMinus->getStaticsById(ST_PMS_PLUS);
- else
+ } else {
g_vars->scene07_plusMinus->_statics = g_vars->scene07_plusMinus->getStaticsById(ST_PMS_MINUS);
-
+ }
break;
case MSG_SC7_CLOSELUKE:
@@ -167,6 +167,10 @@ int sceneHandler07(ExCommand *ex) {
return res;
}
+ break;
+
+ default:
+ break;
}
return 0;