From 1a31f4e762536b547237884358d545d04571112d Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Thu, 21 Dec 2017 11:41:25 +0300 Subject: [PATCH] #473 fixed timer --- src/tic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tic.c b/src/tic.c index fb8c30d..a1cf36d 100644 --- a/src/tic.c +++ b/src/tic.c @@ -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;