mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-31 22:53:54 +00:00
SCI: adding code for kPalVary ticks == 0 case, fixes pharkas
svn-id: r50084
This commit is contained in:
parent
8fcb14d235
commit
e8262d989e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user