/* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
*\r
* This file is part of Project 16.\r
*\r
clock_t start_timer(global_game_variables_t *gv)\r
{\r
gv->kurokku.t = clock();\r
- gv->kurokku.tiku = 0;\r
+ 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.clock = (word *)clockw;\r
+ gv->kurokku.wcpu = WCPU_detectcpu();\r
\r
- //turn this off if XT\r
- switch(detectcpu())\r
+ //turn this off if XT\r
+ switch(gv->kurokku.wcpu)\r
{\r
case 0:\r
gv->kurokku.fpscap=0;\r
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
return (gv->kurokku.t) / CLOCKS_PER_SEC;\r
}\r
\r
-// big global status text buffer\r
-char global_temp_status_text[512];\r
-\r
/*double time_in_seconds(time_t in_t)\r
{\r
return (in_t) / CLOCKS_PER_SEC;\r
}*/\r
\r
+#if 0\r
/* sync */\r
void shinkutxt(global_game_variables_t *gv)\r
{\r
// }\r
}\r
\r
+//#if 0\r
void WaitPee()\r
{\r
while(inp(INPUT_STATUS_1) & 8) {\r
/* spin */\r
}\r
}\r
+#endif\r