From 61ac28abea2a2325fe9253e7439d86897d02cbc1 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 12 Oct 2009 15:13:15 +0000 Subject: SCI: kCelHigh / kCelWide got broken with last revision, now fixed svn-id: r44987 --- engines/sci/engine/kgraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 35fef54224..cc9d293327 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -794,11 +794,11 @@ reg_t kIsItSkip(EngineState *s, int argc, reg_t *argv) { reg_t kCelHigh(EngineState *s, int argc, reg_t *argv) { int view = argv[0].toSint16(); int loop = argv[1].toSint16(); - int cel = (argc > 3) ? argv[2].toSint16() : 0; + int cel = (argc >= 3) ? argv[2].toSint16() : 0; int height, width; Common::Point offset; - if (argc > 4) + if (argc > 3) error("celHigh called with more than 3 parameters"); gfxop_get_cel_parameters(s->gfx_state, view, loop, cel, &width, &height, &offset); @@ -808,11 +808,11 @@ reg_t kCelHigh(EngineState *s, int argc, reg_t *argv) { reg_t kCelWide(EngineState *s, int argc, reg_t *argv) { int view = argv[0].toSint16(); int loop = argv[1].toSint16(); - int cel = (argc > 3) ? argv[2].toSint16() : 0; + int cel = (argc >= 3) ? argv[2].toSint16() : 0; int height, width; Common::Point offset; - if (argc > 4) + if (argc > 3) error("celWide called with more than 3 parameters"); gfxop_get_cel_parameters(s->gfx_state, view, loop, cel, &width, &height, &offset); -- cgit v1.2.3