diff options
author | D G Turner | 2019-12-03 22:12:24 +0000 |
---|---|---|
committer | D G Turner | 2019-12-03 22:12:24 +0000 |
commit | 4be79725614bf6a2f2c71da716f61e3df0c82e23 (patch) | |
tree | 4e6043306bc6031d1efb708367b416575d5dccbc /engines/hdb/ai-funcs.cpp | |
parent | e24e26402d55d8f6af475accf4b5c489459b1a95 (diff) | |
download | scummvm-rg350-4be79725614bf6a2f2c71da716f61e3df0c82e23.tar.gz scummvm-rg350-4be79725614bf6a2f2c71da716f61e3df0c82e23.tar.bz2 scummvm-rg350-4be79725614bf6a2f2c71da716f61e3df0c82e23.zip |
HDB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index e2955959da..438f617e97 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -821,6 +821,8 @@ void AI::killPlayer(Death method) { g_hdb->_sound->playSound(SND_GUY_PLUMMET); } break; + default: + break; } // sound.StopMusic(); @@ -1038,6 +1040,7 @@ void AI::animateEntity(AIEntity *e) { xv = 1; break; case DIR_NONE: + default: break; } @@ -1095,6 +1098,7 @@ void AI::animateEntity(AIEntity *e) { yOff = 0; break; case DIR_NONE: + default: break; } if ((e->tileX + xOff == _waypoints[_numWaypoints - 1].x && @@ -1185,6 +1189,7 @@ void AI::animateEntity(AIEntity *e) { e->state = STATE_MOVERIGHT; break; case DIR_NONE: + default: break; } if (_playerRunning) { @@ -1273,6 +1278,7 @@ void AI::animateEntity(AIEntity *e) { xv = 1; break; case DIR_NONE: + default: break; } @@ -1895,6 +1901,7 @@ void AI::entityFace(const char *luaName, int dir) { e->state = STATE_STANDRIGHT; break; case DIR_NONE: + default: break; } } @@ -1978,6 +1985,7 @@ bool AI::findPath(AIEntity *e) { xv = 1; break; case DIR_NONE: + default: break; } |