]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
hmmm
[16.git] / src / lib / scroll16.c
index 2910255b7aba508e53b132b2cd1452c6a38d7823..eb19f8f51658f1cc9d31bece34dd75067d018da4 100644 (file)
@@ -87,7 +87,6 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        }
                        else if(player[pn].tx > 1 && !(pip[0].map->data[(player[pn].tx-2)+(pip[0].map->width*(player[pn].ty-1))] == 0))//!(player[pn].tx-1 == TRIGGX && player[pn].ty == TRIGGY))
                        {
-                               modexprint(pip[1].page, 320, (player[pn].q*8), 1, player[pn].q, 0, (byte *)(player[pn].q));
                                if(player[pn].q<=(TILEWH/(player[pn].speed)))
                                {
                                        INC_PER_FRAME;
@@ -170,7 +169,6 @@ void walk(map_view_t *pip, player_t *player, word pn)
                        }
                        else if(player[pn].ty > 1 && !(pip[0].map->data[(player[pn].tx-1)+(pip[0].map->width*(player[pn].ty-2))] == 0))//!(player[pn].tx == TRIGGX &&  player[pn].ty-1 == TRIGGY))
                        {
-                               modexprint(pip[1].page, 320, (player[pn].q*8), 1, player[pn].q, 0, (byte *)(player[pn].q));
                                if(player[pn].q<=(TILEWH/(player[pn].speed)))
                                {
                                        INC_PER_FRAME;
@@ -471,7 +469,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
                                modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data));
                        break;
                        case 1:
-                               modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, (t->debug_data[i]));
+                               modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, (t->debug_data[i])+1);
                                //modexprintbig(page, x, y, 1, 15, 0, (t->debug_data));
                                /*for(texty=0; texty<2; texty++)
                                {
@@ -586,14 +584,13 @@ void shinku(page_t *page, global_game_variables_t *gv)
        word col = 15;
        word bgcol = 0;
        word type = 1;
-       dword far* clockdww= (dword far*) 0x046C; /* 18.2hz clock */
        if(elapsed_timer(gv) >= (1.0 / gv->frames_per_second))
        {
                pee = malloc(sizeof(double));
-               sprintf(pee, "%f", ((*clockdww-(gv->t)) /18.2));
+               sprintf(pee, "%f", ((*gv->clock) /18.2));
                modexprint(page, x, y, type, col, bgcol, pee);
-               sprintf(pee, "%f", elapsed_timer(gv));
-               modexprint(page, x, y+8, type, col, bgcol, pee);
+               //sprintf(pee, "%f", /*gv->tiku/*/time_in_seconds(gv));
+               //modexprint(page, x, y+8, type, col, bgcol, pee);
        }
 }