aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/actor.cpp
diff options
context:
space:
mode:
authorD G Turner2019-12-23 11:56:16 +0000
committerD G Turner2019-12-23 11:56:16 +0000
commit59b639ed4d9b8c45644053641522dedabd12fa56 (patch)
treecc98618132f1de362fca07369718af68df44e70a /engines/scumm/actor.cpp
parentd5808d2903e2cc2a04e8545b84f1528230a9b010 (diff)
downloadscummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.gz
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.bz2
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.zip
SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/scumm/actor.cpp')
-rw-r--r--engines/scumm/actor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 48035b5e89..7dcc1a693d 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -788,6 +788,8 @@ void Actor::startWalkAnim(int cmd, int angle) {
turnToDirection(angle);
startAnimActor(_standFrame);
break;
+ default:
+ break;
}
}
}
@@ -1335,6 +1337,8 @@ int Actor::remapDirection(int dir, bool is_walking) {
return 0;
case 6:
return 180;
+ default:
+ break;
}
// MM v0 stores flags as a part of the mask
@@ -2398,6 +2402,8 @@ void Actor::startAnimActor(int f) {
case 1005:
f = _talkStopFrame;
break;
+ default:
+ break;
}
if (_costume != 0) {
@@ -2425,6 +2431,8 @@ void Actor::startAnimActor(int f) {
case 0x3C:
f = _talkStopFrame;
break;
+ default:
+ break;
}
assert(f != 0x3E);