modified: src/lib/16_in.c
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
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