diff options
author | D G Turner | 2019-12-12 17:31:01 +0000 |
---|---|---|
committer | D G Turner | 2019-12-12 17:31:01 +0000 |
commit | 799a088b6edb7772c01d60ebc3e6160bb26ce8fc (patch) | |
tree | c3586556fd1efe38db42629427c718af16ca41d7 /engines/gob/goblin_v4.cpp | |
parent | f62dc99600da83128b7ee1c08bfb09ebc6539173 (diff) | |
download | scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.gz scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.bz2 scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.zip |
GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/gob/goblin_v4.cpp')
-rw-r--r-- | engines/gob/goblin_v4.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/gob/goblin_v4.cpp b/engines/gob/goblin_v4.cpp index 908b4ef616..46dd024436 100644 --- a/engines/gob/goblin_v4.cpp +++ b/engines/gob/goblin_v4.cpp @@ -264,6 +264,9 @@ void Goblin_v4::movePathFind(Mult::Mult_Object *obj, Gob_Object *gobDesc, int16 case 41: animData->nextState = 31; break; + + default: + break; } break; } @@ -373,6 +376,8 @@ void Goblin_v4::movePathFind(Mult::Mult_Object *obj, Gob_Object *gobDesc, int16 case 7: animData->nextState = 31; break; + default: + break; } break; } @@ -416,6 +421,9 @@ void Goblin_v4::moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc, if (animData->frame >= framesCount) animData->isPaused = 1; break; + + default: + break; } switch (animData->state) { @@ -470,6 +478,9 @@ void Goblin_v4::moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc, if (animData->pathExistence == 4) animData->pathExistence = 5; break; + + default: + break; } if ((animData->newState != -1) && (animData->frame == framesCount) && @@ -595,6 +606,9 @@ int16 Goblin_v4::turnState(int16 state, uint16 dir) { case 29: dx = 2; break; + + default: + break; } switch (dir) { @@ -629,6 +643,9 @@ int16 Goblin_v4::turnState(int16 state, uint16 dir) { case kDirSE: cx = 5; break; + + default: + break; } return newStates[dx][cx]; |