]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
showing row and colum drawing the fore loop in draw row is causing it to be slow...
[16.git] / src / lib / scroll16.c
index 640db904f870a02db38d7fc732bbc11a7647f1fa..42b061d47d771f55cc4fdc0e5f7959a4789cd9c4 100755 (executable)
@@ -766,12 +766,17 @@ if(pagedelayrendermap)
        if(!y)  y+=TILEWH;\r
        else    y-=TILEWH;\r
 \r
-       poopoffset%=player[0].enti.speed;\r
-//     printf("y: %d\n", poopoffset);\r
-//     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
+       poopoffset%=player[0].enti.speed; poopoffset++;\r
+//printf("y: %d\n", poopoffset);\r
+       sprintf(global_temp_status_textR, "y:%u", poopoffset); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8), 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; x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; x+=mv->map->tiles->tileWidth, tx++) {\r
+\r
+\r
+\r
+       for(    x=poopoffset*mv->map->tiles->tileWidth;\r
+               x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width;\r
+               x+=mv->map->tiles->tileWidth, tx++) {\r
                if(i>=0) {\r
                        if(pagedelayrendermap) delay(20);\r
                        /* we are in the map, so copy! */\r
@@ -788,15 +793,17 @@ if(pagedelayrendermap)
        if(!x)  x+=TILEWH;\r
        else    x-=TILEWH;\r
 \r
-       poopoffset%=player[0].enti.speed;\r
+       poopoffset%=player[0].enti.speed; poopoffset++;\r
 //printf("x: %d\n", poopoffset);\r
-//     sprintf(global_temp_status_textR, "x:%u", poopoffset); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28, 1, 2, 1, global_temp_status_textR);\r
+       sprintf(global_temp_status_textR, "x:%u", poopoffset); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8), 1, 2, 1, global_temp_status_textR);\r
        /* location in the map array */\r
        i=ty * mv->map->width + tx;\r
 \r
        /* We'll copy all of the columns in the screen,\r
           i + 1 row above and one below */\r
-       for(y=poopoffset; y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height; y+=mv->map->tiles->tileHeight, ty++) {\r
+       for(    y=poopoffset*mv->map->tiles->tileHeight;\r
+               y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height;\r
+               y+=mv->map->tiles->tileHeight, ty++) {\r
                if(i>=0) {\r
                        if(pagedelayrendermap) delay(20);\r
                        /* we are in the map, so copy away! */\r