aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/script.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-02-23 07:45:51 +0000
committerTorbjörn Andersson2006-02-23 07:45:51 +0000
commit43f2d984fb4f9549a033de2c7198a1b522512f6b (patch)
tree09104bfb375558d51c8de792ab666bbd67189412 /engines/cine/script.cpp
parented577e61d5a404fe27e3d3fcfed307740c1c05e5 (diff)
downloadscummvm-rg350-43f2d984fb4f9549a033de2c7198a1b522512f6b.tar.gz
scummvm-rg350-43f2d984fb4f9549a033de2c7198a1b522512f6b.tar.bz2
scummvm-rg350-43f2d984fb4f9549a033de2c7198a1b522512f6b.zip
Don't call exit() directly. Instead, use the backend's quit() method for normal
shutdown, and error() for abnormal termination. svn-id: r20818
Diffstat (limited to 'engines/cine/script.cpp')
-rw-r--r--engines/cine/script.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/cine/script.cpp b/engines/cine/script.cpp
index 85268c9fad..6f39fe562f 100644
--- a/engines/cine/script.cpp
+++ b/engines/cine/script.cpp
@@ -403,10 +403,9 @@ u16 computeScriptStackSub(u8 mode, byte *scriptPtr, s16 *stackPtr,
}
default:
{
- printf
- ("Unsupported opcode %X in computeScriptStack\n",
+ error
+ ("Unsupported opcode %X in computeScriptStack",
opcode - 1);
- exit(1);
}
}
@@ -2752,8 +2751,7 @@ void executeScript(prcLinkedListStruct *scriptElement, u16 param) {
}
default:
{
- printf("Unsupported opcode %X\n", opcode - 1);
- exit(1);
+ error("Unsupported opcode %X", opcode - 1);
}
}
}