]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_timer.c
16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / src / lib / 16_timer.c
index 16295d1bca454f12c01bf5d709276761f18e2633..c1716567221b88c3ce711dc9e2ad9b644ed69d0f 100755 (executable)
@@ -30,10 +30,10 @@ clock_t start_timer(global_game_variables_t *gv)
        gv->kurokku.tiku = 0; gv->video.sfip = 0;\r
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
-       //gv->kurokku.frames_per_second = 60;\r
+       gv->kurokku.wcpu = WCPU_detectcpu();\r
 \r
-    //turn this off if XT\r
-       switch(WCPU_detectcpu())\r
+       //turn this off if XT\r
+       switch(gv->kurokku.wcpu)\r
        {\r
                case 0:\r
                        gv->kurokku.fpscap=0;\r
@@ -41,7 +41,7 @@ clock_t start_timer(global_game_variables_t *gv)
                break;\r
                default:\r
                        gv->kurokku.fpscap=1;\r
-                       gv->kurokku.frames_per_second=60;\r
+                       gv->kurokku.frames_per_second=FPSVALUE;\r
                break;\r
        }\r
        return gv->kurokku.t;\r
@@ -65,10 +65,6 @@ double time_in_seconds(global_game_variables_t *gv)
        return (gv->kurokku.t) / CLOCKS_PER_SEC;\r
 }\r
 \r
-// big global status text buffer\r
-char global_temp_status_text[512];\r
-char global_temp_status_text2[512];\r
-\r
 /*double time_in_seconds(time_t in_t)\r
 {\r
        return (in_t) / CLOCKS_PER_SEC;\r
@@ -100,6 +96,7 @@ void shinkutxt(global_game_variables_t *gv)
 //     }\r
 }\r
 \r
+#if 0\r
 void WaitPee()\r
 {\r
     while(inp(INPUT_STATUS_1)  & 8)  {\r
@@ -110,3 +107,4 @@ void WaitPee()
        /* spin */\r
     }\r
 }\r
+#endif\r