]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/scroll16.c
==== OK i removed all warnings wwww
[16.git] / src / lib / scroll16.c
index 6f1c450ed0e1d2fd89473cd755ddaca0cdd06d7b..cb014fd06bf126206eedaa47b6c2b776be4bfeae 100755 (executable)
@@ -362,7 +362,7 @@ initMap(map_t *map) {
 \r
 void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid)\r
 {\r
-       word x, y;  /* coordinate for drawing */\r
+       word x;//, y;  /* coordinate for drawing */\r
 \r
        /* increment the pixel position and update the page */\r
        mv[id].page->dx += player[plid].speed;\r
@@ -392,7 +392,7 @@ void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid)
 \r
 void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid)\r
 {\r
-       word xy;  /* coordinate for drawing */\r
+       word x;//,y;  /* coordinate for drawing */\r
 \r
        /* decrement the pixel position and update the page */\r
        mv[id].page->dx -= player[plid].speed;\r
@@ -422,7 +422,7 @@ void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid)
 \r
 void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid)\r
 {\r
-       word x, y;  /* coordinate for drawing */\r
+       word y;//x,  /* coordinate for drawing */\r
 \r
        /* decrement the pixel position and update the page */\r
        mv[id].page->dy -= player[plid].speed;\r
@@ -451,7 +451,7 @@ void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid)
 \r
 void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid)\r
 {\r
-       word x, y;  /* coordinate for drawing */\r
+       word y;//x,  /* coordinate for drawing */\r
 \r
        /* increment the pixel position and update the page */\r
        mv[id].page->dy += player[plid].speed;\r
@@ -594,7 +594,7 @@ sword chkmap(map_t *map, word q)
 //TODO: player position here\r
 void mapGoTo(map_view_t *mv, int tx, int ty)\r
 {\r
-       int px, py;\r
+       int py;//px,\r
        unsigned int i;\r
 \r
        /* set up the coordinates */\r
@@ -634,8 +634,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y)
 {\r
        word rx;\r
        word ry;\r
-       word textx=0;\r
-       word texty=0;\r
+       //word textx=0, texty=0;\r
        //if(i==0) i=2;\r
        if(i==0)\r
        {\r
@@ -761,8 +760,8 @@ void shinku(global_game_variables_t *gv)
 {\r
        word x = (0) + gv->video.page[/*!*/(gv->video.p)].dx; // follow the screen\r
        word y = (0) + gv->video.page[/*!*/(gv->video.p)].dy; // follow the screen\r
-       word w = 64, h = 8, col = 7, bgcol = 0, type = 1;\r
-       byte o,o2,i;\r
+       word col = 7, bgcol = 0, type = 1;//w = 64, h = 8,\r
+       //byte o,o2,i;\r
        //modexCopyPageRegion(pip[1].page, pip[2].page, 16, 16, 16, 16, (14*8)+4, 8+4);\r
        /* block copy to visible RAM from offscreen */\r
 //     vga_setup_wm1_block_copy();\r