aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/object.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/object.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/object.cpp')
-rw-r--r--engines/cine/object.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cine/object.cpp b/engines/cine/object.cpp
index f9376f422d..6f3a534b5d 100644
--- a/engines/cine/object.cpp
+++ b/engines/cine/object.cpp
@@ -436,10 +436,9 @@ u8 compareObjectParam(u8 objIdx, u8 param1, s16 param2) {
}
default:
{
- printf
- ("Unsupported compare type: %d in compareObjectParam\n",
+ error
+ ("Unsupported compare type: %d in compareObjectParam",
param1 - 1);
- exit(1);
}
}