]> 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:36:32 +0000 (15:36 -0600)
committersparky4 <sparky4@cock.li>
Wed, 15 Feb 2017 21:36:32 +0000 (15:36 -0600)
src/lib/scroll16.c

index 469ed1f710051551cdeaceddf20d51a13130ac92..c466be411a9988cb700230c77fed5228e75e21b2 100755 (executable)
@@ -603,8 +603,8 @@ 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]){\r
-                                       sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, mv[id].dx, (y+((z-1)*4))>>2, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2);\r
+                               if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sw+mv[id].dxThresh)){\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
                        }\r
@@ -629,8 +629,8 @@ 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]){\r
-                                       sprintf(global_temp_status_text2, "%u", mv[id].map->layerdata[z].data[i]); modexprint(mv[id].page, (x+((z-1)*4))>>2, mv[id].dy, 1, 0, PALMAPDRAWW, z+2, global_temp_status_text2);\r
+                               if(mv[id].map->layerdata[z].data[i] && (mv[id].page->sh+mv[id].dyThresh)){\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
                        }\r