diff options
author | D G Turner | 2019-11-16 10:10:45 +0000 |
---|---|---|
committer | D G Turner | 2019-11-16 10:10:45 +0000 |
commit | 4b6cb6878488577eb0c047e3baea412eb98d02c2 (patch) | |
tree | 00c4dfc70f13e9b67b07253878aacba765f6c0af /engines/dm/group.cpp | |
parent | cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e (diff) | |
download | scummvm-rg350-4b6cb6878488577eb0c047e3baea412eb98d02c2.tar.gz scummvm-rg350-4b6cb6878488577eb0c047e3baea412eb98d02c2.tar.bz2 scummvm-rg350-4b6cb6878488577eb0c047e3baea412eb98d02c2.zip |
DM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/dm/group.cpp')
-rw-r--r-- | engines/dm/group.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp index f36a8ddc31..9b65322930 100644 --- a/engines/dm/group.cpp +++ b/engines/dm/group.cpp @@ -355,6 +355,9 @@ bool GroupMan::isDestVisibleFromSource(uint16 dir, int16 srcMapX, int16 srcMapY, SWAP(srcMapX, srcMapY); SWAP(destMapX, destMapY); break; + case kDMDirWest: + default: + break; } return ((srcMapX -= (destMapX - 1)) > 0) && ((((srcMapY -= destMapY) < 0) ? -srcMapY : srcMapY) <= srcMapX); } @@ -1500,6 +1503,10 @@ bool GroupMan::isCreatureAttacking(Group *group, int16 mapX, int16 mapY, uint16 break; case 3: projectileThing = _vm->_thingExplOpenDoor; + break; + default: + projectileThing = _vm->_thingNone; + break; } } break; @@ -2068,6 +2075,9 @@ void GroupMan::fuseAction(uint16 mapX, uint16 mapY) { break; case 3: destMapY++; + break; + default: + break; } break; } |