aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 0f54f21850..7adc358bee 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -1468,15 +1468,18 @@ int16 Op_SongExist(void) {
return 0;
}
-int16 Op_SetNodeColor(void) {
- int16 color;
- int16 node;
+int16 Op_SetNodeState(void) {
+ int16 state = popVar();
+ int16 node = popVar();
- color = popVar();
- node = popVar();
- printf("Unimplemented \"Op_SetNodeColor\"\n");
+ return setNodeState(node, state);
+}
- return 0;
+int16 Op_SetNodeColor(void) {
+ int16 color = popVar();
+ int16 node = popVar();
+
+ return setNodeColor(node, color);
}
int16 Op_SetXDial(void) {
@@ -1587,7 +1590,7 @@ opcodeFunction opcodeTablePtr[] =
Op_RemoveAnimation,
Op_SetZoom,
Op_SetObjectAtNode,
- NULL, // setNodeState, never used ?
+ Op_SetNodeState,
Op_SetNodeColor,
Op_TrackAnim,
Op_GetNodeX,