From: sparky4 Date: Sun, 12 Jul 2015 21:29:05 +0000 (-0500) Subject: modified: inputest.exe X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=69d15b1e78605f14f225f175110e929bd747cfbb;p=16.git modified: inputest.exe modified: src/lib/16_in.c --- diff --git a/inputest.exe b/inputest.exe index 8773cbb7..c4bee5ef 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 558ef7f3..0858441d 100644 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -805,7 +805,8 @@ IN_ReadControl(int playnum,player_t *player) word buttons; int dx,dy; Motion mx,my; - ControlType type; + ControlType type; + word conpee; register KeyboardDef *def; dx = dy = 0; @@ -908,7 +909,9 @@ register KeyboardDef *def; player[playnum].info.button2 = buttons & (1 << 2); player[playnum].info.button3 = buttons & (1 << 3); // player[playnum].info.dir = DirTable[((my + 1) * 3) + (mx + 1)]; - player[playnum].info.dir = DirTable[(((my + 1) * 2) + (mx + 1))-1]; + conpee=(((my + 1) * 2) + (mx + 1)); + if(conpee) conpee--; + player[playnum].info.dir = DirTable[conpee]; #if DEMO0 if (DemoMode == demo_Record)