#473 fixed timer

This commit is contained in:
BADIM-PC\Vadim 2017-12-21 11:41:25 +03:00
parent 67d5ad4860
commit 1a31f4e762
1 changed files with 2 additions and 2 deletions

View File

@ -1572,6 +1572,8 @@ static void api_tick(tic_mem* tic, tic_tick_data* data)
if(tic->input == tic_mouse_input)
tic->ram.vram.vars.mask.data = 0;
data->start = data->counter();
config = getScriptConfig(code);
done = config->init(tic, code);
}
@ -1584,8 +1586,6 @@ static void api_tick(tic_mem* tic, tic_tick_data* data)
if(done)
{
data->start = data->counter();
machine->state.tick = config->tick;
machine->state.scanline = config->scanline;
machine->state.ovr.callback = config->overlap;