]> 4ch.mooo.com Git - 16.git/commitdiff
==== INITIAL LAYER MAP STUFF DONE, added mapdraw layer ontop of bg, going to implemen...
authorsparky4 <sparky4@cock.li>
Wed, 15 Feb 2017 21:58:09 +0000 (15:58 -0600)
committersparky4 <sparky4@cock.li>
Wed, 15 Feb 2017 21:58:09 +0000 (15:58 -0600)
src/lib/16_tdef.h
src/lib/scroll16.c

index 58b4e01a379d773b38fb4d4d5fe4447d0b9bf47a..24552c73877b3810d6bce11013e8ede783aa0d51 100755 (executable)
@@ -320,6 +320,7 @@ typedef struct
        nibble __near *p;       // pointer to video's render page num\r
        nibble __near *sp;      // pointer to video's show page num\r
        int dx, dy;     // draw row and col var\r
+       word dxt,dyt;\r
 //newer vars!\r
        int delta, d;\r
 } map_view_t;\r
index c466be411a9988cb700230c77fed5228e75e21b2..c50ebb4a3a1be36c33e1edf158fd8271b17fb932 100755 (executable)
@@ -603,7 +603,7 @@ if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv[id].dx); mod
                if(i>=0){\r
                        mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[0].data[i], mv[id].page, mv[id].dx, y);\r
                        for(z=1;z<=2;z++){\r
-                               if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sw+mv[id].dxThresh)){\r
+                               if(mv[id].map->layerdata[z].data[i] && mv->dy<mv->map->height){\r
                                        sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, mv[id].dx, y, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2);\r
                                        //mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[z].data[i], mv[id].page, mv[id].dx, y);\r
                                }\r
@@ -629,7 +629,7 @@ if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv[id].dy); mod
                if(i>=0){\r
                        mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[0].data[i], mv[id].page, x, mv[id].dy);\r
                        for(z=1;z<=2;z++){\r
-                               if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sh+mv[id].dyThresh)){\r
+                               if(mv[id].map->layerdata[z].data[i] && mv->dx<mv->map->width){\r
                                        sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, x, mv[id].dy, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2);\r
                                        //mapDrawTile(mv[id].map->MAPTILESPTR, mv[id].map->layerdata[z].data[i], mv[id].page, x, mv[id].dy);\r
                                }\r