X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_timer.c;h=6a0c7a47d00a91d90e17acc9d33c27d62e78f98f;hb=45f3e2d77b5287888a171d442f74ca4e0e807d9b;hp=4ce497099cebb25424d5e575c92120a89313299f;hpb=ad7c0e46f0b70f0e601b162411a3e95e788b45f1;p=16.git diff --git a/src/lib/16_timer.c b/src/lib/16_timer.c index 4ce49709..6a0c7a47 100755 --- a/src/lib/16_timer.c +++ b/src/lib/16_timer.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -22,16 +22,18 @@ #include "src/lib/16_timer.h" +static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ + clock_t start_timer(global_game_variables_t *gv) { gv->kurokku.t = clock(); - gv->kurokku.tiku = 0; + gv->kurokku.tiku = 0; gv->video.sfip = 0; gv->kurokku.clock_start = *clockw; gv->kurokku.clock = clockw; //gv->kurokku.frames_per_second = 60; //turn this off if XT - switch(detectcpu()) + switch(WCPU_detectcpu()) { case 0: gv->kurokku.fpscap=0;