Skip to content

Commit

Permalink
[Anniversary] [th01] Debug: Define a constant length for the bomb v…
Browse files Browse the repository at this point in the history
…ariable

6 halfwidth characters because it can potentially be signed. No more
confusing `timer` values!

Completes P0239, funded by Ember2528.
  • Loading branch information
nmlgc committed May 1, 2023
1 parent 8b5804d commit c4eb77e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions th01/main/debug.cpp
Expand Up @@ -166,9 +166,8 @@ void debug_vars(void)

text_cursor_move_1_based(0, 5); // ZUN bloat: Already done via \n

// ZUN bug: A length for `bomb` would have been nice.
printf(
" main:%7lu, rand:%7lu, bomb:%d, timer:%7lu\n",
" main:%7lu, rand:%7lu, bomb:%6d, timer:%7lu\n",
bomb_frames,
frame_rand,
bomb_doubletap_frames,
Expand Down

0 comments on commit c4eb77e

Please sign in to comment.