diff options
author | Alyssa Milburn | 2011-07-19 22:41:58 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-07-19 22:41:58 +0200 |
commit | bdb1b81ca088a409c1876db7bec84993e947c5e0 (patch) | |
tree | e795c26039c79aac4982c98eb3fcbe2f9c744d0e /engines/composer | |
parent | 78cb4919c659c0cc9004a0a5247141b3de649220 (diff) | |
download | scummvm-rg350-bdb1b81ca088a409c1876db7bec84993e947c5e0.tar.gz scummvm-rg350-bdb1b81ca088a409c1876db7bec84993e947c5e0.tar.bz2 scummvm-rg350-bdb1b81ca088a409c1876db7bec84993e947c5e0.zip |
COMPOSER: Clip palette fade percentage.
Diffstat (limited to 'engines/composer')
-rw-r--r-- | engines/composer/scripting.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp index 497d40b5d8..7b3bbd1285 100644 --- a/engines/composer/scripting.cpp +++ b/engines/composer/scripting.cpp @@ -600,8 +600,10 @@ int16 ComposerEngine::scriptFuncCall(uint16 id, int16 param1, int16 param2, int1 case kFuncSetPalette: // TODO: return 0 if not disabling (0) and doesn't exist debug(4, "kFuncSetPalette(%d, %d)", param1, param2); + // this seems only needed for a script bug in the Gregory credits, sigh + if ((uint16)param2 > 100) + param2 = 100; loadCTBL(param1, param2); - // TODO: incomplete? return 1; case kFuncSaveVars: debug(3, "kFuncSaveVars(%d)", param1); |