]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
revert!
[16.git] / src / lib / scroll16.c
index 55ce2c98de919bfe129cbe0befeb37ee187df0a7..965f5f0406a2c93787ead449b14280be903bf2be 100755 (executable)
@@ -621,7 +621,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x)
 }*/
 
 //sync!
-/*void shinku(page_t *page, global_game_variables_t *gv)
+void shinku(page_t *page, global_game_variables_t *gv)
 {
        byte *pee;
        word x = (16);
@@ -629,15 +629,21 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x)
        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(byte)*64);
+               sprintf(pee, "%lu", gv->tiku);
+               modexprint(page, 16, 16, 1, 15, 0, pee);
+               //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)
 {