long int filesize(FILE *fp);\r
void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used, size_t h_free);\r
int US_CheckParm(char *parm,char **strings);\r
+byte dirchar(byte in);\r
\r
#endif/*_LIBHEAD_H_*/\r
player[pn].info.dir = DirTable[conpee];\r
\r
//TODO: overwriting direction must be added\r
- if(DIRECTIONIFELSEGFXTEST) 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]) || player[pn].q>1)\r
{\r
printf("q=%d ", player[pn].q);\r
- printf("cpee=%d ", conpee);\r
- printf("(mx)=%d ", mx);\r
- printf("(my)=%d ", my);\r
- printf("pdir=%d d=%d dir=%d\n", player[pn].pdir, player[pn].d, player[pn].info.dir);\r
+ printf("cpee=%c ", dirchar(conpee));\r
+ //printf("(mx)=%d ", mx);\r
+ //printf("(my)=%d ", my);\r
+ printf("pdir=%c d=%c dir=%c", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir));\r
+ printf("%c%d %c%d %c%d %c%d\n", dirchar(0), inpu.Keyboard[def->up], dirchar(4), inpu.Keyboard[def->down], dirchar(1), inpu.Keyboard[def->left], dirchar(3), inpu.Keyboard[def->right]);\r
}\r
//#endif\r
}\r
\r
//if else for gfxtesting and direction\r
//player[pn].d == 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
+#define NDIRECTIONIFELSEGFXTEST (player[pn].info.dir != 2)\r
\r
#define KeyInt 9 // The keyboard ISR number\r
\r