SCI: adding code for kPalVary ticks == 0 case, fixes pharkas

svn-id: r50084
This commit is contained in:
Martin Kiewitz 2010-06-20 16:48:52 +00:00
parent 8fcb14d235
commit e8262d989e

View File

@ -506,6 +506,11 @@ void GfxPalette::kernelPalVaryInit(GuiResourceId resourceId, uint16 ticks, uint1
_palVaryStep = 1;
_palVaryStepStop = stepStop;
_palVaryDirection = direction;
if (!ticks) {
// if no ticks are given, jump directly to destination
_palVaryDirection = stepStop;
ticks = 1;
}
// Call signal increase every [ticks]
g_sci->getTimerManager()->installTimerProc(&palVaryCallback, 1000000 / 60 * ticks, this);
}