aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-03-01 04:21:09 +0200
committerFilippos Karapetis2016-03-01 04:21:09 +0200
commit03754d4127bc90571aa70b455c4ddd900ddea5e0 (patch)
treeb3920dc57b1d7a134a251785a3c9154440acab7a
parent6ba31a88f044fef6f2669f4bec43409f8dd799bc (diff)
downloadscummvm-rg350-03754d4127bc90571aa70b455c4ddd900ddea5e0.tar.gz
scummvm-rg350-03754d4127bc90571aa70b455c4ddd900ddea5e0.tar.bz2
scummvm-rg350-03754d4127bc90571aa70b455c4ddd900ddea5e0.zip
SCI32: Warn when the unhandled parameter is set in kPalVarySetPercent
-rw-r--r--engines/sci/engine/kgraphics32.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index 78afa184f1..2be47b8a0c 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -800,6 +800,8 @@ reg_t kPalVarySetPercent(EngineState *s, int argc, reg_t *argv) {
int16 percent = argc > 1 ? argv[1].toSint16() : 0;
// TODO: GK1 adds a third optional parameter here, at the end of chapter 1
// (during the sunset/sunrise sequence, the parameter is 1)
+ if (argc > 2)
+ warning("kPalVarySetPercent: third parameter passed: %d", argv[2].toSint16());
g_sci->_gfxPalette32->setVaryPercent(percent, time, -1, -1);
return NULL_REG;
}