]> 4ch.mooo.com Git - 16.git/commitdiff
polished some variables xset and yset needs to be added wwww
authorsparky4 <sparky4@lappy4.4ch.mooo.com>
Mon, 8 Dec 2014 05:43:27 +0000 (23:43 -0600)
committersparky4 <sparky4@lappy4.4ch.mooo.com>
Mon, 8 Dec 2014 05:43:27 +0000 (23:43 -0600)
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index 8734952f0fd0a9ee3a85bca195806e294d284ee3..b045791a063d82c840785344ae9b09966a7df2e8 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
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