Replaced "tx"/"ty" (t for true) by "dx"/"dy" (d for display), it now

takes into account SCALE.
This commit is contained in:
KikooDX 2020-09-19 15:32:15 +02:00
parent 134ef0588a
commit a40d42584c
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ void player_draw_debug(Player *player, uint step)
{
dprint(0, 0, C_BLACK, "x: %d", player->pos.x);
dprint(0, 10, C_BLACK, "y: %d", player->pos.y);
dprint(0, 20, C_BLACK, "tx: %d", player->pos.x / VEC_PRECISION);
dprint(0, 30, C_BLACK, "ty: %d", player->pos.y / VEC_PRECISION);
dprint(0, 20, C_BLACK, "dx: %d", player->pos.x / SCALE * VEC_PRECISION);
dprint(0, 30, C_BLACK, "dy: %d", player->pos.y / SCALE * VEC_PRECISION);
dprint(0, 40, C_BLACK, "vp: %d", VEC_PRECISION);
dprint(0, 50, C_BLACK, "st: %u", step);
}