X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_timer.c;h=a9dba5d5d26eeeb58792e1bf0bfdc8ecffe0d7ea;hb=c99bda70e2b46d085d3ba7aa951117bcd737c208;hp=5cb216c19b48f47ce61eff49b157f55e9c382636;hpb=989f287818c93cf9b1ff96c13e66720571210513;p=16.git diff --git a/src/lib/16_timer.c b/src/lib/16_timer.c index 5cb216c1..a9dba5d5 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; @@ -67,6 +67,7 @@ double time_in_seconds(global_game_variables_t *gv) // big global status text buffer char global_temp_status_text[512]; +char global_temp_status_text2[512]; /*double time_in_seconds(time_t in_t) {