aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
authorVincent Hamm2007-10-29 22:03:55 +0000
committerVincent Hamm2007-10-29 22:03:55 +0000
commitcaa451f5d2b471fc207739815638056f86fc8dce (patch)
tree059fa17140669a93827fd10e3909a777fa020385 /engines/cruise/function.cpp
parent1bf448ac372174ceb162586cf33adc9d8fdd9c5c (diff)
downloadscummvm-rg350-caa451f5d2b471fc207739815638056f86fc8dce.tar.gz
scummvm-rg350-caa451f5d2b471fc207739815638056f86fc8dce.tar.bz2
scummvm-rg350-caa451f5d2b471fc207739815638056f86fc8dce.zip
Implement more object input
svn-id: r29317
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 6ac9032a7a..128da02890 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -405,10 +405,9 @@ int16 Op_changeCutSceneState(void) {
int16 Op_62(void) {
if (currentScriptPtr->var1A == 20) {
- changeScriptParamInList(currentScriptPtr->var18, currentScriptPtr->var16, &procHead, 9997, -1);
+ changeScriptParamInList(currentScriptPtr->var18, currentScriptPtr->var16, &procHead, -1, 9997);
} else if (currentScriptPtr->var1A == 30) {
- changeScriptParamInList(currentScriptPtr->var18,
- currentScriptPtr->var16, &relHead, 9997, -1);
+ changeScriptParamInList(currentScriptPtr->var18, currentScriptPtr->var16, &relHead, -1, 9997);
}
return 0;
@@ -645,11 +644,9 @@ int16 Op_SetFontFileIndex(void) {
int16 Op_63(void) {
if (currentScriptPtr->var1A == 0x14) {
- changeScriptParamInList(currentScriptPtr->var18,
- currentScriptPtr->var16, &procHead, 0, -1);
+ changeScriptParamInList(currentScriptPtr->var18, currentScriptPtr->var16, &procHead, -1, 0);
} else if (currentScriptPtr->var1A == 0x1E) {
- changeScriptParamInList(currentScriptPtr->var18,
- currentScriptPtr->var16, &relHead, 0, -1);
+ changeScriptParamInList(currentScriptPtr->var18, currentScriptPtr->var16, &relHead, -1, 0);
}
return 0;
@@ -680,19 +677,14 @@ int16 Op_AddMessage(void) {
overlayIdx = currentScriptPtr->overlayNumber;
if (color == -1) {
- color = 1;
- printf("Unimplemented automatic message color\n");
- // ASSERT(0);
- //color = calcTabSomething();
+ color = findHighColor();
} else {
if (CVTLoaded) {
color = cvtPalette[color];
}
}
- createTextObject(overlayIdx, var_8, &cellHead,
- currentScriptPtr->scriptNumber, currentScriptPtr->overlayNumber,
- currentActiveBackgroundPlane, color, var_2, var_4, var_6);
+ createTextObject(&cellHead, overlayIdx, var_8, var_6, var_4, var_2, color, currentActiveBackgroundPlane, currentScriptPtr->overlayNumber, currentScriptPtr->scriptNumber);
return 0;
}
@@ -764,9 +756,9 @@ int16 Op_AutoCell(void) {
if (type) {
if (currentScriptPtr->type == scriptType_PROC) {
- changeScriptParamInList(currentScriptPtr->overlayNumber, currentScriptPtr->scriptNumber, &procHead, 9996, -1);
+ changeScriptParamInList(currentScriptPtr->overlayNumber, currentScriptPtr->scriptNumber, &procHead, -1, 9996);
} else if (currentScriptPtr->type == scriptType_REL) {
- changeScriptParamInList(currentScriptPtr->overlayNumber, currentScriptPtr->scriptNumber, &relHead, 9996, -1);
+ changeScriptParamInList(currentScriptPtr->overlayNumber, currentScriptPtr->scriptNumber, &relHead, -1, 9996);
}
}