#473 fixed timer
This commit is contained in:
parent
67d5ad4860
commit
1a31f4e762
|
@ -1572,6 +1572,8 @@ static void api_tick(tic_mem* tic, tic_tick_data* data)
|
||||||
if(tic->input == tic_mouse_input)
|
if(tic->input == tic_mouse_input)
|
||||||
tic->ram.vram.vars.mask.data = 0;
|
tic->ram.vram.vars.mask.data = 0;
|
||||||
|
|
||||||
|
data->start = data->counter();
|
||||||
|
|
||||||
config = getScriptConfig(code);
|
config = getScriptConfig(code);
|
||||||
done = config->init(tic, code);
|
done = config->init(tic, code);
|
||||||
}
|
}
|
||||||
|
@ -1584,8 +1586,6 @@ static void api_tick(tic_mem* tic, tic_tick_data* data)
|
||||||
|
|
||||||
if(done)
|
if(done)
|
||||||
{
|
{
|
||||||
data->start = data->counter();
|
|
||||||
|
|
||||||
machine->state.tick = config->tick;
|
machine->state.tick = config->tick;
|
||||||
machine->state.scanline = config->scanline;
|
machine->state.scanline = config->scanline;
|
||||||
machine->state.ovr.callback = config->overlap;
|
machine->state.ovr.callback = config->overlap;
|
||||||
|
|
Loading…
Reference in New Issue