]> 4ch.mooo.com Git - 16.git/commitdiff
modified: inputest.exe
authorsparky4 <sparky4@cock.li>
Sun, 12 Jul 2015 21:29:05 +0000 (16:29 -0500)
committersparky4 <sparky4@cock.li>
Sun, 12 Jul 2015 21:29:05 +0000 (16:29 -0500)
modified:   src/lib/16_in.c

inputest.exe
src/lib/16_in.c

index 8773cbb7223f25c0d75b677e185e4f8e7ba2aa1e..c4bee5ef412d5773a0c047068f53b894a10b7ab4 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index 558ef7f3cac8b88ba592cd01daaf5dbd977e496e..0858441dfabb0b2556a2081c3b4b82e8fca62647 100644 (file)
@@ -805,7 +805,8 @@ IN_ReadControl(int playnum,player_t *player)
                        word            buttons;\r
                        int                     dx,dy;\r
                        Motion          mx,my;\r
-                       ControlType     type;\r
+                       ControlType     type;
+                       word conpee;\r
 register       KeyboardDef     *def;\r
 \r
        dx = dy = 0;\r
@@ -908,7 +909,9 @@ register    KeyboardDef     *def;
        player[playnum].info.button2 = buttons & (1 << 2);\r
        player[playnum].info.button3 = buttons & (1 << 3);\r
 //     player[playnum].info.dir = DirTable[((my + 1) * 3) + (mx + 1)];
-       player[playnum].info.dir = DirTable[(((my + 1) * 2) + (mx + 1))-1];\r
+       conpee=(((my + 1) * 2) + (mx + 1));
+       if(conpee) conpee--;
+       player[playnum].info.dir = DirTable[conpee];\r
 \r
 #if DEMO0\r
        if (DemoMode == demo_Record)\r