]> 4ch.mooo.com Git - 16.git/commitdiff
pdir printf(%c%d %c%d %c%d %c%dn, dirchar(0), inpu.Keyboard[def->up], dirchar(4)...
authorsparky4 <sparky4@cock.li>
Sun, 13 Mar 2016 05:49:49 +0000 (23:49 -0600)
committersparky4 <sparky4@cock.li>
Sun, 13 Mar 2016 05:49:49 +0000 (23:49 -0600)
src/lib/16_in.c

index 6415a29c72bef6fb6e5f73d0aa91d937bfc57f96..038f8a263f3361f50e431d5568404dce919e6c70 100755 (executable)
@@ -856,7 +856,7 @@ register    KeyboardDef     *def;
                                mx = motion_Right,my = motion_Down;*/\r
                        if(DIRECTIONIFELSEGFXTEST)\r
                        {\r
-//                     if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){\r
+                       if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){\r
                                if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]))\r
                                {\r
                                        my = motion_Up;\r
@@ -865,7 +865,7 @@ register    KeyboardDef     *def;
                                {\r
                                        my = motion_Down;\r
                                }\r
-//                     }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){\r
+                       }else if(!inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]){\r
                                if((inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]))\r
                                {\r
                                        mx = motion_Left;\r
@@ -875,6 +875,7 @@ register    KeyboardDef     *def;
                                        mx = motion_Right;\r
                                }\r
                        }\r
+                       }\r
                        //input from player\r
                        if (inpu.Keyboard[def->button0])\r
                                buttons += 1 << 0;\r