wwww
Revision | 03094492cc2ac88d8c0c21352b65036b053009ed (tree) |
---|---|
Time | 2016-08-10 23:52:49 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
testing input
@@ -968,15 +968,12 @@ register KeyboardDef *def; | ||
968 | 968 | } |
969 | 969 | #endif |
970 | 970 | if(testcontrolnoisy > 0) |
971 | -if(player[pn].d/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right])*/ || player[pn].q>1) | |
971 | +if(player[pn].d &&/*(inpu.Keyboard[def->up] || inpu.Keyboard[def->down] || inpu.Keyboard[def->left] || inpu.Keyboard[def->right]) ||*/ player[pn].q>1) | |
972 | 972 | { |
973 | 973 | printf("q=%d ", player[pn].q); |
974 | 974 | printf("cpee=%c ", dirchar(conpee)); |
975 | - //printf("(mx)=%d ", mx); | |
976 | - //printf("(my)=%d ", my); | |
977 | - //printf("[%d] ", mx+my); | |
978 | 975 | printf("pdir=%c d=%c dir=%c ", dirchar(player[pn].pdir), dirchar(player[pn].d), dirchar(player[pn].info.dir)); |
979 | - 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); | |
976 | + 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); | |
980 | 977 | 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]); |
981 | 978 | printf("\n"); |
982 | 979 | } |