mx = motion_Right,my = motion_Down;*/\r
if(DIRECTIONIFELSE)\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
my = motion_Up;\r
if((inpu.Keyboard[def->down] && !inpu.Keyboard[def->up]))\r
my = motion_Down;\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
mx = motion_Left;\r
if((inpu.Keyboard[def->right] && !inpu.Keyboard[def->left]))// || player[pn].pdir != 1)\r
mx = motion_Right;\r
- }else{ //2 keys pressed\r
+\r
+ //}else\r
+ if(mx+my>1<mx+my)\r
+ { //2 keys pressed\r
switch (player[pn].pdir)\r
{\r
case 0:\r
break;\r
}\r
if(testcontrolnoisy > 0){ printf("dir=%c ", dirchar(dir)); printf("pdir=%c ", dirchar(player[pn].pdir)); }\r
- }\r
+ //}\r
}\r
//input from player\r
if (inpu.Keyboard[def->button0])\r