]> 4ch.mooo.com Git - 16.git/blobdiff - src/scroll.c
polished some variables xset and yset needs to be added wwww
[16.git] / src / scroll.c
index bcb089dad5fb034569097eb36aa0e91995dc176f..9000d63e4b7c8a30e7ceac66a3977c95c55af85d 100644 (file)
@@ -55,7 +55,7 @@ void mapGoTo(map_view_t *mv, int tx, int ty);
 void mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y);\r
 void mapDrawRow(map_view_t *mv, int tx, int ty, word y);\r
 void mapDrawCol(map_view_t *mv, int tx, int ty, word x);\r
-void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1, short d2, int x, int y, int ls, int lp, bitmap_t *bmp);\r
+void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword d, short scrolloffsetswitch, int x, int y, int ls, int lp, bitmap_t *bmp);\r
 \r
 #define TILEWH 16\r
 #define QUADWH (TILEWH/4)\r
@@ -569,14 +569,14 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) {
 }\r
 \r
 void\r
-animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1, short d2, int x, int y, int ls, int lp, bitmap_t *bmp)\r
+animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword d, short scrolloffsetswitch, int x, int y, int ls, int lp, bitmap_t *bmp)\r
 {\r
-       short dire=32*d1; //direction\r
-       short qq; //scroll offset\r
+       sword dire=32*d; //direction\r
+       sword qq; //scroll offset\r
 \r
-       if(d2==0) qq = 0;\r
+       if(scrolloffsetswitch==0) qq = 0;\r
        else qq = ((lp)*SPEED);\r
-       switch (d1)\r
+       switch (d)\r
        {\r
                case 0:\r
                        //up\r