]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
tiku... i cannot make an fps system ><
[16.git] / src / lib / scroll16.c
index 640e2eda2ceeb4847f8e7ce977ad59448c0d9ee0..e6483656e6c6fb9c211da4402eea7f0e87b3a0d6 100755 (executable)
@@ -629,14 +629,18 @@ void shinku(page_t *page, global_game_variables_t *gv)
        word col = 15;
        word bgcol = 0;
        word type = 1;
+       float t;
+       //gv->clock=*hwclockw;
+       t=(((*hwclockw)-gv->clock_start) /18.2);
        //if(elapsed_timer(gv) >= (1.0 / gv->frames_per_second))
        //{
-               pee = malloc(sizeof(double));
-//++++         sprintf(pee, "%f", ((*gv->clock) /18.2));
-//++++         modexprint(page, x, y, type, col, bgcol, pee);
+               pee = _fmalloc(sizeof(float));
+               //sprintf(pee, "%f", gv->tiku/t);
+               modexprint(page, x, y, type, col, bgcol, pee);
                //sprintf(pee, "%f", *gv->tiku/\*time_in_seconds(gv));
                //modexprint(page, x, y+8, type, col, bgcol, pee);
        //}
+       (gv->clock_start)=*hwclockw;
 }
 
 void near animatePlayer(map_view_t *pip, player_t *player, word playnum, sword scrollswitch)