]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/scroll.c
authorsparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 16:28:48 +0000 (10:28 -0600)
committersparky4 <sparky4@cock.li>
Sat, 22 Nov 2014 16:28:48 +0000 (10:28 -0600)
16/modex16/scroll.c

index 838ef4bfa6e07aa0f0fae97d43cac708ce5cacbb..49130bfc0449c2ea4b829875a9b99512b27531be 100644 (file)
@@ -114,7 +114,7 @@ void main() {
        //when player.tx or player.ty == 0 or player.tx == 20 or player.ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
        if(keyp(77)){
                if(draw->tx >= 0 && draw->tx+20 < MAPX)\r
-                       for(q=0; q<16; q++) {\r
+                       for(q=0; q<TILEWH; q++) {\r
                                mapScrollRight(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollRight(draw, 1);\r
@@ -125,7 +125,7 @@ void main() {
 \r
        if(keyp(75)){
                if(draw->tx > 0 && draw->tx+20 <= MAPX)\r
-                       for(q=0; q<16; q++) {\r
+                       for(q=0; q<TILEWH; q++) {\r
                                mapScrollLeft(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollLeft(show, 1);\r
@@ -136,7 +136,7 @@ void main() {
 \r
        if(keyp(80)){
                if(draw->ty >= 0 && draw->ty+15 < MAPY)\r
-                       for(q=0; q<16; q++) {\r
+                       for(q=0; q<TILEWH; q++) {\r
                                mapScrollDown(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollDown(show, 1);\r
@@ -147,7 +147,7 @@ void main() {
 \r
        if(keyp(72)){
                if(draw->ty > 0 && draw->ty+15 <= MAPY)\r
-                       for(q=0; q<16; q++) {\r
+                       for(q=0; q<TILEWH; q++) {\r
                                mapScrollUp(draw, SPEED);\r
                                modexShowPage(draw->page);\r
 //             mapScrollUp(show, 1);\r