]> 4ch.mooo.com Git - 16.git/commitdiff
ok input is very close to final!
authorsparky4 <sparky4@cock.li>
Sun, 12 Jul 2015 21:46:11 +0000 (16:46 -0500)
committersparky4 <sparky4@cock.li>
Sun, 12 Jul 2015 21:46:11 +0000 (16:46 -0500)
modified:   inputest.exe
modified:   src/lib/16_in.c

inputest.exe
src/lib/16_in.c

index cf2dda4e34b556eb8435b74ee182f69a8a0d9145..4f9190c4eb5db794717115bdce3f058f93d138f7 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index 6b1addd7898bb832969faa27c781cd7cf8db2f10..687ec6499eb111009bd25526645d399881b459a6 100644 (file)
@@ -852,15 +852,15 @@ register  KeyboardDef     *def;
 \r
                        if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){
                        \r
-                       if((inpu.Keyboard[def->up] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 0)\r
+                       if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 0)\r
                                my = motion_Up;\r
-                       else if((inpu.Keyboard[def->down] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 4)\r
+                       if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 4)\r
                                my = motion_Down;\r
 \r
                        }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){\r
-                       if((inpu.Keyboard[def->left] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 1)\r
+                       if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 1)\r
                                mx = motion_Left;\r
-                       else if((inpu.Keyboard[def->right] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 3)\r
+                       if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left] && player[playnum].info.dir == 2))// || player[playnum].info.dir == 3)\r
                                mx = motion_Right;\r
                        }\r
                        if (inpu.Keyboard[def->button0])\r