OSDN Git Service

updating xcrollbroke commit
[proj16/16.git] / src / lib / 16_timer.c
index affe673..c5aae48 100755 (executable)
 \r
 #include "src/lib/16_timer.h"\r
 \r
-//static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
+static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
 clock_t start_timer(global_game_variables_t *gv)\r
 {\r
        gv->kurokku.t = clock();\r
        gv->kurokku.tiku = 0; gv->video.sfip = 0;\r
-       gv->kurokku.clock_start = 0x046C; /* 18.2hz clock */\r
-       gv->kurokku.clock = (word far*) 0x046C; /* 18.2hz clock */\r
+       gv->kurokku.clock_start = *clockw;\r
+       gv->kurokku.clock = clockw;\r
        gv->kurokku.wcpu = WCPU_detectcpu();\r
 \r
        //turn this off if XT\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