diff options
author | Travis Howell | 2004-09-07 02:53:22 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-07 02:53:22 +0000 |
commit | 98eeb34f2779f41b80df0b33286800824d15612f (patch) | |
tree | 23ab3337892ecb06655f651d3eee083df079ea7d /scumm | |
parent | f1fdfeda346cb6917bac351a4c3e8957a1c37b39 (diff) | |
download | scummvm-rg350-98eeb34f2779f41b80df0b33286800824d15612f.tar.gz scummvm-rg350-98eeb34f2779f41b80df0b33286800824d15612f.tar.bz2 scummvm-rg350-98eeb34f2779f41b80df0b33286800824d15612f.zip |
Switch to cases, to catch any missing cases.
svn-id: r14935
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v90he.cpp | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index 3e72213ae3..f3e14874a5 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -505,17 +505,22 @@ void ScummEngine_v90he::o90_unknown25() { void ScummEngine_v90he::o90_unknown26() { // Incomplete - int value = fetchScriptByte(); - value -= 34; + int subOp = fetchScriptByte(); + subOp -= 34; - if (value == 10) { - pop(); - pop(); - } else if (value == 23) { - pop(); + switch (subOp) { + case 10: + pop(); + pop(); + break; + case 23: + pop(); + break; + case 124: + break; + default: + error("o90_unknown26: Unknown case %d", subOp); } - - debug(1,"o90_unknown26 stub (%d)", value); } void ScummEngine_v90he::o90_unknown27() { @@ -540,14 +545,16 @@ void ScummEngine_v90he::o90_unknown27() { void ScummEngine_v90he::o90_unknown28() { // Incomplete - int value = fetchScriptByte(); - value -= 37; + int subOp = fetchScriptByte(); + subOp -= 37; - if (value == 20) { - pop(); + switch (subOp) { + case 20: + pop(); + break; + default: + error("o90_unknown28: Unknown case %d", subOp); } - - debug(1,"o90_unknown28 stub (%d)", value); } } // End of namespace Scumm |