GOB: Mark intentional fallthrough in switch statements

This commit is contained in:
Sven Hesse 2018-02-13 13:26:49 +01:00
parent 9adaaf9c94
commit a5fcdb55da
3 changed files with 3 additions and 1 deletions

View file

@ -562,6 +562,7 @@ void Draw_v2::printTotText(int16 id) {
default: default:
str[strPos] = (char) cmd; str[strPos] = (char) cmd;
// fall through
case 32: case 32:
mask[strPos++] = maskChar; mask[strPos++] = maskChar;
ptr++; ptr++;

View file

@ -153,7 +153,7 @@ void Expression::skipExpr(char stopToken) {
case 15: case 15:
_vm->_game->_script->skip(2); _vm->_game->_script->skip(2);
// fall through
case OP_ARRAY_INT8: case OP_ARRAY_INT8:
case OP_ARRAY_INT32: case OP_ARRAY_INT32:
case OP_ARRAY_INT16: case OP_ARRAY_INT16:

View file

@ -79,6 +79,7 @@ void Oko::advance() {
case kStateBreathe: case kStateBreathe:
if ((getFrame() == 6) || (getFrame() == 23)) if ((getFrame() == 6) || (getFrame() == 23))
_sound->blasterPlay(_breathe, 1, 0); _sound->blasterPlay(_breathe, 1, 0);
// fall through
case kStateSink: case kStateSink:
case kStateRaise: case kStateRaise:
case kStateHurt: case kStateHurt: