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:
str[strPos] = (char) cmd;
// fall through
case 32:
mask[strPos++] = maskChar;
ptr++;

View File

@ -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:

View File

@ -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: