aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-09-05 20:47:23 +0000
committerMax Horn2003-09-05 20:47:23 +0000
commit5f2b0b697735652f91a88ed6e4d038d600412c95 (patch)
tree7c38dae45cb1c3d408a1c60c5eb62fddb6eb44f5
parent4941df93f90ca429551c5244ff8882ef903cce57 (diff)
downloadscummvm-rg350-5f2b0b697735652f91a88ed6e4d038d600412c95.tar.gz
scummvm-rg350-5f2b0b697735652f91a88ed6e4d038d600412c95.tar.bz2
scummvm-rg350-5f2b0b697735652f91a88ed6e4d038d600412c95.zip
made default case outputs a bit more consistent
svn-id: r10017
-rw-r--r--scumm/script_v5.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index db79e581a1..549a82c394 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -771,7 +771,8 @@ void Scumm_v5::o5_drawObject() {
xpos = getVarOrDirectWord(0x40);
ypos = getVarOrDirectWord(0x20);
} else {
- switch ((_opcode = fetchScriptByte()) & 0x1F) {
+ _opcode = fetchScriptByte();
+ switch (_opcode & 0x1F) {
case 1: /* draw at */
xpos = getVarOrDirectWord(0x80);
ypos = getVarOrDirectWord(0x40);
@@ -782,7 +783,7 @@ void Scumm_v5::o5_drawObject() {
case 0x1F: /* neither */
break;
default:
- error("o5_drawObject: default case");
+ error("o5_drawObject: unknown subopcode %d", _opcode & 0x1F);
}
}
@@ -1623,7 +1624,7 @@ void Scumm_v5::o5_quitPauseRestart() {
shutDown();
break;
default:
- error("o5_quitPauseRestart invalid case %d", subOp);
+ error("o5_quitPauseRestart: unknown subopcode %d", subOp);
}
}
@@ -2000,7 +2001,7 @@ void Scumm_v5::o5_saveRestoreVerbs() {
}
break;
default:
- error("o5_saveRestoreVerbs: invalid opcode");
+ error("o5_saveRestoreVerbs: unknown subopcode %d", _opcode);
}
}
@@ -2467,14 +2468,6 @@ void Scumm_v5::o5_verbOps() {
vs->type = kTextVerbType;
vs->imgindex = 0;
break;
- case 21: /* unk in loomcd */
- warning("VerbOps case 21, please report where this occured");
- // TODO Work out exactly which vars are set.
- fetchScriptByte();
- fetchScriptByte();
- fetchScriptByte();
- fetchScriptByte();
- break;
case 22: /* assign object */
a = getVarOrDirectWord(0x80);
b = getVarOrDirectByte(0x40);
@@ -2487,6 +2480,8 @@ void Scumm_v5::o5_verbOps() {
case 23: /* set back color */
vs->bkcolor = getVarOrDirectByte(0x80);
break;
+ default:
+ error("o5_verbOps: unknown subopcode %d", _opcode & 0x1F);
}
}
drawVerb(slot, 0);
@@ -2526,7 +2521,7 @@ void Scumm_v5::o5_wait() {
return;
break;
default:
- error("o5_wait: default case");
+ error("o5_wait: unknown subopcode %d", _opcode & 0x1F);
return;
}