X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_timer.c;h=c5aae48597f78c67a18d8d26d17322710d5f1ae1;hb=2f706222157c9d186db8adf361542bb76ba259c6;hp=5cb216c19b48f47ce61eff49b157f55e9c382636;hpb=16fee04bfaa2cf218b1a906b0df0ed7e3a5706fa;p=16.git diff --git a/src/lib/16_timer.c b/src/lib/16_timer.c index 5cb216c1..c5aae485 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. * @@ -27,13 +27,13 @@ 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; + gv->kurokku.wcpu = WCPU_detectcpu(); - //turn this off if XT - switch(detectcpu()) + //turn this off if XT + switch(gv->kurokku.wcpu) { case 0: gv->kurokku.fpscap=0; @@ -65,9 +65,6 @@ double time_in_seconds(global_game_variables_t *gv) return (gv->kurokku.t) / CLOCKS_PER_SEC; } -// big global status text buffer -char global_temp_status_text[512]; - /*double time_in_seconds(time_t in_t) { return (in_t) / CLOCKS_PER_SEC;