aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2018-02-13 13:26:49 +0100
committerSven Hesse2018-02-13 13:29:03 +0100
commita5fcdb55da40592718811caee82160ca97681ff9 (patch)
tree2e6d03591bbddaa9ff26fca72541a51943672a9e /engines/gob
parent9adaaf9c94ff7989441522548915b55de8ea5e9f (diff)
downloadscummvm-rg350-a5fcdb55da40592718811caee82160ca97681ff9.tar.gz
scummvm-rg350-a5fcdb55da40592718811caee82160ca97681ff9.tar.bz2
scummvm-rg350-a5fcdb55da40592718811caee82160ca97681ff9.zip
GOB: Mark intentional fallthrough in switch statements
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/draw_v2.cpp1
-rw-r--r--engines/gob/expression.cpp2
-rw-r--r--engines/gob/minigames/geisha/oko.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp
index 9855b1ebd7..8d487f815a 100644
--- a/engines/gob/draw_v2.cpp
+++ b/engines/gob/draw_v2.cpp
@@ -562,6 +562,7 @@ void Draw_v2::printTotText(int16 id) {
default:
str[strPos] = (char) cmd;
+ // fall through
case 32:
mask[strPos++] = maskChar;
ptr++;
diff --git a/engines/gob/expression.cpp b/engines/gob/expression.cpp
index 1a99412530..c108e1d82d 100644
--- a/engines/gob/expression.cpp
+++ b/engines/gob/expression.cpp
@@ -153,7 +153,7 @@ void Expression::skipExpr(char stopToken) {
case 15:
_vm->_game->_script->skip(2);
-
+ // fall through
case OP_ARRAY_INT8:
case OP_ARRAY_INT32:
case OP_ARRAY_INT16:
diff --git a/engines/gob/minigames/geisha/oko.cpp b/engines/gob/minigames/geisha/oko.cpp
index a9e13f5bd7..9ede3983a0 100644
--- a/engines/gob/minigames/geisha/oko.cpp
+++ b/engines/gob/minigames/geisha/oko.cpp
@@ -79,6 +79,7 @@ void Oko::advance() {
case kStateBreathe:
if ((getFrame() == 6) || (getFrame() == 23))
_sound->blasterPlay(_breathe, 1, 0);
+ // fall through
case kStateSink:
case kStateRaise:
case kStateHurt: