]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_timer.c
cleaned up the repo from debugging watcom2 ^^
[16.git] / src / lib / 16_timer.c
index 6d00448fd698a68c16198154de86cca10ee2c59f..e45ee9484c4e6fe5d6b3c2322ebafea830815c55 100755 (executable)
@@ -28,16 +28,18 @@ clock_t start_timer(global_game_variables_t *gv)
        gv->kurokku.tiku = 0;\r
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
-       gv->kurokku.frames_per_second = 60;\r
+       //gv->kurokku.frames_per_second = 60;\r
        gv->pee = _nmalloc(sizeof(byte)*16);\r
        //turn this off if XT\r
        switch(detectcpu())\r
        {\r
                case 0:\r
                        gv->kurokku.fpscap=0;\r
+                       gv->kurokku.frames_per_second=1;\r
                break;\r
                default:\r
                        gv->kurokku.fpscap=1;\r
+                       gv->kurokku.frames_per_second=60;\r
                break;\r
        }\r
        return gv->kurokku.t;\r
@@ -79,17 +81,17 @@ void shinkutxt(global_game_variables_t *gv)
                gv->kurokku.tiku=0;\r
        }\r
        gv->kurokku.tiku++;\r
-       switch(gv->kurokku.fpscap)\r
-       {\r
-               case 0:\r
-                       gv->kurokku.frames_per_second=1;\r
-               break;\r
-               case 1:\r
-                       //turn this off if XT\r
-                       WaitPee();\r
-                       gv->kurokku.frames_per_second=60;\r
-               break;\r
-       }\r
+//     switch(gv->kurokku.fpscap)\r
+//     {\r
+//             case 0:\r
+//                     gv->kurokku.frames_per_second=1;\r
+//             break;\r
+//             case 1:\r
+//                     //turn this off if XT\r
+//                     WaitPee();\r
+//                     gv->kurokku.frames_per_second=60;\r
+//             break;\r
+//     }\r
 }\r
 \r
 void WaitPee()\r