diff options
author | D G Turner | 2019-11-14 02:44:19 +0000 |
---|---|---|
committer | D G Turner | 2019-11-14 02:44:19 +0000 |
commit | 9190f6e1c8047446dd9c9c70525bc0e855cbe8dc (patch) | |
tree | 346b6730967544ef5b7efd05463853073b712c7a /engines/fullpipe/scenes/scene27.cpp | |
parent | 25a12ad89a96b8373760728b9aefb58f8530fac2 (diff) | |
download | scummvm-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/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index 171cd6d616..fd23d58394 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -644,7 +644,6 @@ int sceneHandler27(ExCommand *cmd) { g_vars->scene27_wipeIsNeeded = true; g_fp->playSound(SND_27_027, 0); - break; case MSG_SC27_CLICKBET: @@ -652,22 +651,21 @@ int sceneHandler27(ExCommand *cmd) { break; case MSG_SC27_STARTBET: - if (g_vars->scene27_bat) + if (g_vars->scene27_bat) { sceneHandler27_startBat(g_vars->scene27_bat); - + } break; case 30: - if (g_vars->scene27_dudeIsAiming) + if (g_vars->scene27_dudeIsAiming) { sceneHandler27_startAiming(); - + } break; case 29: - if (g_fp->_aniMan == g_fp->_currentScene->getStaticANIObjectAtPos(g_fp->_sceneRect.left + cmd->_x, g_fp->_sceneRect.top + cmd->_y) - && g_vars->scene27_maxPhaseReached) + if (g_fp->_aniMan == g_fp->_currentScene->getStaticANIObjectAtPos(g_fp->_sceneRect.left + cmd->_x, g_fp->_sceneRect.top + cmd->_y) && g_vars->scene27_maxPhaseReached) { sceneHandler27_initAiming(cmd); - + } break; case 33: @@ -697,6 +695,9 @@ int sceneHandler27(ExCommand *cmd) { g_fp->startSceneTrack(); break; + + default: + break; } return 0; |