From: sparky4 Date: Mon, 8 Dec 2014 05:43:27 +0000 (-0600) Subject: polished some variables xset and yset needs to be added wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c3bd5f9ac6703054adb4039ef13b924db98fcaf6;p=16.git polished some variables xset and yset needs to be added wwww modified: scroll.exe modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index 8734952f..b045791a 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index bcb089da..9000d63e 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -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); void mapDrawRow(map_view_t *mv, int tx, int ty, word y); void mapDrawCol(map_view_t *mv, int tx, int ty, word x); -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); +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); #define TILEWH 16 #define QUADWH (TILEWH/4) @@ -569,14 +569,14 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) { } 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) +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) { - short dire=32*d1; //direction - short qq; //scroll offset + sword dire=32*d; //direction + sword qq; //scroll offset - if(d2==0) qq = 0; + if(scrolloffsetswitch==0) qq = 0; else qq = ((lp)*SPEED); - switch (d1) + switch (d) { case 0: //up