COMPOSER: Clip palette fade percentage.
This commit is contained in:
parent
78cb4919c6
commit
bdb1b81ca0
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue