Skip to content

Commit 162d6fe

Browse files
committed
Fix aftool format strings
1 parent df698f6 commit 162d6fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tools/aftool/main.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ void af_get_key(sd_af_file *af, const char **key, int kcount) {
522522
printf("%d\n", af->exec_window);
523523
break;
524524
case 2:
525-
printf("%f\n", af->endurance);
525+
printf("%d\n", af->endurance);
526526
break;
527527
case 3:
528528
printf("%d\n", af->unknown_b);
@@ -531,16 +531,16 @@ void af_get_key(sd_af_file *af, const char **key, int kcount) {
531531
printf("%d\n", af->health);
532532
break;
533533
case 5:
534-
printf("%f\n", af->forward_speed);
534+
printf("%d\n", af->forward_speed);
535535
break;
536536
case 6:
537-
printf("%f\n", af->reverse_speed);
537+
printf("%d\n", af->reverse_speed);
538538
break;
539539
case 7:
540-
printf("%f\n", af->jump_speed);
540+
printf("%d\n", af->jump_speed);
541541
break;
542542
case 8:
543-
printf("%f\n", af->fall_speed);
543+
printf("%d\n", af->fall_speed);
544544
break;
545545
case 9:
546546
printf("%d\n", af->unknown_c);
@@ -638,13 +638,13 @@ void af_info(sd_af_file *af) {
638638
printf("AF File information:\n");
639639
printf(" * File ID: %d\n", af->file_id);
640640
printf(" * Exec window: %d\n", af->exec_window);
641-
printf(" * Endurance: %f\n", af->endurance);
641+
printf(" * Endurance: %d\n", af->endurance);
642642
printf(" * Unknown B: %d\n", af->unknown_b);
643643
printf(" * Health: %d\n", af->health);
644-
printf(" * Fwd speed: %f\n", af->forward_speed);
645-
printf(" * Rev speed: %f\n", af->reverse_speed);
646-
printf(" * Jump speed: %f\n", af->jump_speed);
647-
printf(" * Fall speed: %f\n", af->fall_speed);
644+
printf(" * Fwd speed: %d\n", af->forward_speed);
645+
printf(" * Rev speed: %d\n", af->reverse_speed);
646+
printf(" * Jump speed: %d\n", af->jump_speed);
647+
printf(" * Fall speed: %d\n", af->fall_speed);
648648
printf(" * Unknown C: %d\n", af->unknown_c);
649649

650650
printf(" * Animations: ");

0 commit comments

Comments
 (0)