\r
#include "src/lib/16_in.h"\r
\r
-byte testkeyin=0,testcontrolnoisy=0,gfxtest=0;\r
+byte testkeyin=0,testcontrolnoisy=0;\r
\r
/*\r
=============================================================================\r
mx = motion_Left,my = motion_Down;\r
else if (Keyboard[def->downright])\r
mx = motion_Right,my = motion_Down;*/\r
+ if(DIRECTIONIFELSEGFXTEST)\r
if(!inpu.Keyboard[def->left] && !inpu.Keyboard[def->right]){\r
// if(testcontrolnoisy > 0){ printf("ud "); printf("%u ", inpu.Keyboard[def->up]); printf("%u ", inpu.Keyboard[def->down]);}\r
if((inpu.Keyboard[def->up] && !inpu.Keyboard[def->down]) || player[pn].pdir == 0)\r
player[pn].info.dir = DirTable[conpee];\r
\r
//TODO: overwriting direction must be added\r
- if(DIRECTIONIFELSEGFXTEST && player[pn].d != player[pn].info.dir) player[pn].pdir=DirTable[conpee];\r
+ if(player[pn].d==2) player[pn].pdir=DirTable[conpee];\r
if(player[pn].q==1 && (mx!=motion_None || my!=motion_None))\r
{\r
player[pn].d = player[pn].info.dir;\r
#endif\r
//#ifdef TESTCONTROLNOISY\r
if(testcontrolnoisy > 0)\r
-if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right]) && NDIRECTIONIFELSEGFXTEST)\r
+//if((inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right]) && NDIRECTIONIFELSEGFXTEST)\r
{\r
printf("q=%d ", player[pn].q);\r
printf("cpee=%d ", conpee);\r
//#define TESTCONTROLNOISY\r
#endif\r
\r
-extern byte testkeyin,testcontrolnoisy,gfxtest;\r
+extern byte testkeyin,testcontrolnoisy;\r
\r
//if else for gfxtesting and direction\r
-#define DIRECTIONIFELSEGFXTEST (player[pn].d == 2 || player[pn].info.dir == 2)\r
-#define NDIRECTIONIFELSEGFXTEST (player[pn].d != 2 || player[pn].info.dir != 2)\r
+//player[pn].d == 2 ||\r
+#define DIRECTIONIFELSEGFXTEST (player[pn].info.dir == 2)\r
+//#define NDIRECTIONIFELSEGFXTEST (player[pn].d != 2 || player[pn].info.dir != 2)\r
\r
#define KeyInt 9 // The keyboard ISR number\r
\r