]> 4ch.mooo.com Git - 16.git/commitdiff
testing input
authorsparky4 <sparky4@cock.li>
Wed, 10 Aug 2016 14:52:49 +0000 (09:52 -0500)
committersparky4 <sparky4@cock.li>
Wed, 10 Aug 2016 14:52:49 +0000 (09:52 -0500)
src/lib/16_in.c

index 8c02939ba1708c582753987652a10fc2eeec2baf..8ed7228d1f2ac54a62eec55af2c58aa917402cb8 100755 (executable)
@@ -968,15 +968,12 @@ register  KeyboardDef     *def;
        }\r
 #endif\r
 if(testcontrolnoisy > 0)\r
-if(player[pn].d/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1)\r
+if(player[pn].d &&/*(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=%c ", dirchar(conpee));\r
-       //printf("(mx)=%d       ", mx);\r
-       //printf("(my)=%d       ", my);\r
-       //printf("[%d]  ", mx+my);\r
        printf("pdir=%c d=%c dir=%c ", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir));\r
-       if(realdelta) printf("dx=%u dy=%u mx=%u my=%u", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis);\r
+       if(realdelta) printf("dx=%d     dy=%d           mx=%d my=%d", player[pn].info.x, player[pn].info.y, player[pn].info.xaxis, player[pn].info.yaxis);\r
        else if(!realdelta) printf("%c%d %c%d %c%d %c%d", 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
        printf("\n");\r
 }\r