]> 4ch.mooo.com Git - 16.git/commitdiff
7
authorsparky4 <sparky4@cock.li>
Fri, 5 Dec 2014 04:07:39 +0000 (22:07 -0600)
committersparky4 <sparky4@cock.li>
Fri, 5 Dec 2014 04:07:39 +0000 (22:07 -0600)
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index 6126c4e25675e11d73c6eb28f51befb5cab0ea0f..7fb7acbbee447ff1ca794e4a538cc8a7b73dc5bd 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 530f305f4678175266e866ab598a408896d7914a..eca090f92aad9660888fe0e3147f071b8bdf70af 100644 (file)
@@ -588,20 +588,20 @@ dpad(sword k/*, sword q*/)
        //if(keypressed>1){ keypressed=0; return keypressed; }
        if(k==0)
        {
-               if(keyp(75) && !keyp(77)){ player.d = 4; k--; }
-               if(keyp(80) && !keyp(72)){ player.d = 3; k--; }
+               if(keyp(75) && !keyp(77)){ player.d = 4; k++; }
+               if(keyp(80) && !keyp(72)){ player.d = 3; k++; }
                if(keyp(77) && !keyp(75)){ player.d = 2; k++; }\r
                if(keyp(72) && !keyp(80)){ player.d = 1; k++; }
        }
        else
        {
-               if(keyp(72) && !keyp(80)){ player.d = 1; k++; }
-               if(keyp(77) && !keyp(75)){ player.d = 2; k++; }
+               if(keyp(72) && !keyp(80)){ player.d = 1; k--; }
+               if(keyp(77) && !keyp(75)){ player.d = 2; k--; }
                if(keyp(80) && !keyp(72)){ player.d = 3; k--; }
                if(keyp(75) && !keyp(77)){ player.d = 4; k--; }
        } 
        //printf("p2: %d\n", k);
-       //if(k>1 || k<-1){ dpad(0); }
+       if(k>1/* || k<-1*/){ dpad(k); }
        //return keypressed=0;
 }
 \r