fix debug display

This commit is contained in:
Mylloon 2022-01-01 21:36:20 +01:00
parent 9f4e31aa01
commit 2901afc3d0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -194,7 +194,8 @@ void idle(void) {
/* Affichage Debug */ /* Affichage Debug */
if(_debug) { if(_debug) {
printf("\n==== Héros A ====\n li = %d, col = %d, pos = %d\n", (int)(zA + .5f), (int)(xA + .5f), _herosA.position); printf("\n========= Héros A =========\n");
printf(" li = %d, col = %d, idx = %d\n", (int)(zA + .5f), (int)(xA + .5f), _herosA.position);
printf(" zA=%f xA=%f\n", zA, xA); printf(" zA=%f xA=%f\n", zA, xA);
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA); printf(" d=%d h=%d g=%d b=%d\n", coorDroiteA, coorHautA, coorGaucheA, coorBasA);
} }
@ -240,9 +241,11 @@ void idle(void) {
/* Affichage Debug */ /* Affichage Debug */
if(_debug) { if(_debug) {
printf("==== Héros B ====\n li = %d, col = %d, pos = %d\n=================\n", (int)(zB + .5f), (int)(xB + .5f), _herosB.position); printf("========= Héros B =========\n");
printf(" li = %d, col = %d, idx = %d\n", (int)(zB + .5f), (int)(xB + .5f), _herosB.position);
printf(" zA=%f xA=%f\n", zB, xB); printf(" zA=%f xA=%f\n", zB, xB);
printf(" d=%d h=%d g=%d b=%d\n", coorDroiteB, coorHautB, coorGaucheB, coorBasB); printf(" d=%d h=%d g=%d b=%d\n", coorDroiteB, coorHautB, coorGaucheB, coorBasB);
printf("===========================\n");
} }
/* Anti-collision entre joueurs */ /* Anti-collision entre joueurs */