aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/script.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-05 13:06:03 +0000
committerTorbjörn Andersson2006-04-05 13:06:03 +0000
commit48c46eed6b573e7f131795dccc990eafb42d86a2 (patch)
tree3c142ad9f5254d9c8809cba2193f4d4e1b1468d7 /engines/cine/script.cpp
parent58c7f8d6b1f6092e92bd82cf11af28b59d9ee5c2 (diff)
downloadscummvm-rg350-48c46eed6b573e7f131795dccc990eafb42d86a2.tar.gz
scummvm-rg350-48c46eed6b573e7f131795dccc990eafb42d86a2.tar.bz2
scummvm-rg350-48c46eed6b573e7f131795dccc990eafb42d86a2.zip
I don't think assert(0) is a particularly helpful error message...
svn-id: r21630
Diffstat (limited to 'engines/cine/script.cpp')
-rw-r--r--engines/cine/script.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cine/script.cpp b/engines/cine/script.cpp
index 60def8e2e6..e88ef5ea10 100644
--- a/engines/cine/script.cpp
+++ b/engines/cine/script.cpp
@@ -881,7 +881,7 @@ void executeScript(prcLinkedListStruct *scriptElement, uint16 params) {
}
default:
{
- assert(0);
+ error("executeScript: OP_loadVar: Unknown variable type %d", varType);
}
}
} else {
@@ -2570,7 +2570,7 @@ void decompileScript(byte *scriptPtr, int16 *stackPtr, uint16 scriptSize, uint16
} else if (param2 == 5) {
sprintf(lineBuffer, "var[%d]=rand() mod %d\n", param1, param3);
} else {
- assert(0);
+ error("decompileScript: 0x09: param2 = %d", param2);
}
} else {
int16 param3;
@@ -2720,7 +2720,7 @@ void decompileScript(byte *scriptPtr, int16 *stackPtr, uint16 scriptSize, uint16
sprintf(compareString1, "var[%d]", param1);
sprintf(compareString2, "globalVar[%d]", param3);
} else {
- assert(0);
+ error("decompileScript: 0x0E: param2 = %d", param2);
}
} else {
int16 param3;
@@ -3138,7 +3138,7 @@ void decompileScript(byte *scriptPtr, int16 *stackPtr, uint16 scriptSize, uint16
} else if (param2 == 2) {
sprintf(lineBuffer, "globalVar[%d] = globalVar[%d]\n", param1, param3);
} else {
- assert(0);
+ error("decompileScript: 0x52: param2 = %d", param2);
}
} else {
int16 param3;
@@ -3174,7 +3174,7 @@ void decompileScript(byte *scriptPtr, int16 *stackPtr, uint16 scriptSize, uint16
sprintf(compareString1, "globalVar[%d]", param1);
sprintf(compareString2, "globalVar[%d]", param3);
} else {
- assert(0);
+ error("decompileScript: 0x53: param2 = %d", param2);
}
} else {
int16 param3;