]> 4ch.mooo.com Git - 16.git/commitdiff
showing row and colum drawing
authorsparky4 <sparky4@cock.li>
Thu, 26 Jan 2017 16:30:13 +0000 (10:30 -0600)
committersparky4 <sparky4@cock.li>
Thu, 26 Jan 2017 16:30:13 +0000 (10:30 -0600)
src/lib/16_tail.h
src/lib/scroll16.c
src/lib/scroll16.h

index f5998339350c10b276c133d2503fda0c9f6669d2..a90d9ca749011459cb012a315f30307d6289ce13 100755 (executable)
@@ -44,6 +44,7 @@
        if(IN_KeyDown(sc_F9)){ pagenorendermap=!pagenorendermap;                                IN_UserInput(1,1); } \\r
        if(IN_KeyDown(sc_F7)){ ZC_ShowMV(&mv, 0, 1);                                                    IN_UserInput(1,1); } \\r
        if(IN_KeyDown(sc_F6)){ ZC_ShowMV(&mv, 0, 0);                                                    IN_UserInput(1,1); } \\r
+       if(IN_KeyDown(sc_F3)){ pagedelayrendermap=!pagedelayrendermap;                  IN_UserInput(1,1); } \\r
        if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss;                                           IN_UserInput(1,1); } \\r
        if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]);                                  IN_UserInput(1,1); }\r
 \r
index e22a48ec9c38db2259d16d36c0b83173555e97e1..0e2e847b0edacca87a7efbd9a4444cf6b28d7dd4 100755 (executable)
@@ -772,10 +772,9 @@ void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *player, w
 //     sprintf(global_temp_status_textR, "y:%u", poopoffset); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28, 1, 2, 1, global_temp_status_textR);\r
        /* the position within the map array */\r
        i=ty * mv->map->width + tx;\r
-       for(x=poopoffset;\r
-               x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width;\r
-       x+=mv->map->tiles->tileWidth, tx++) {\r
+       for(x=poopoffset; x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; x+=mv->map->tiles->tileWidth, tx++) {\r
                if(i>=0) {\r
+                       if(pagedelayrendermap) delay(400);\r
                        /* we are in the map, so copy! */\r
                        mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y);\r
                }\r
@@ -799,10 +798,9 @@ void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *player, w
 \r
        /* We'll copy all of the columns in the screen,\r
           i + 1 row above and one below */\r
-       for(y=poopoffset;\r
-               y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height;\r
-       y+=mv->map->tiles->tileHeight, ty++) {\r
+       for(y=poopoffset; y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height; y+=mv->map->tiles->tileHeight, ty++) {\r
                if(i>=0) {\r
+                       if(pagedelayrendermap) delay(400);\r
                        /* we are in the map, so copy away! */\r
                        mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y);\r
                }\r
@@ -853,6 +851,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x)
 boolean pageflipflop = 1;\r
 boolean pageploop = 1;\r
 boolean pagenorendermap = 0;\r
+boolean pagedelayrendermap = 0;\r
 \r
 /*     sync    */\r
 void shinku(global_game_variables_t *gv)\r
index 7eb37b9f933ed581a1a9582964baa04dfbb7bb7e..643c68f0fd55ec62b14018c163fb1d95f588160f 100755 (executable)
@@ -122,7 +122,7 @@ printf("\n\n");\
        printf("pageflipflop=%u\n", pageflipflop);\\r
        printf("\n");\r
 \r
-extern boolean pageflipflop, pageploop, pagenorendermap;\r
+extern boolean pageflipflop, pageploop, pagenorendermap, pagedelayrendermap;\r
 \r
 extern char global_temp_status_text[512];\r
 \r