X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fscroll16.c;h=965f5f0406a2c93787ead449b14280be903bf2be;hb=707c5310d94a386646727cafad91f93cc65052ad;hp=55ce2c98de919bfe129cbe0befeb37ee187df0a7;hpb=deacca9025d6d70754cc5017fcf46d2f4038e738;p=16.git diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 55ce2c98..965f5f04 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -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) {