Updated all static variables to have the s_ prefix and constants to upper case (#591)
* Updated all static variables to have the s_ prefix and constants to upper case * Renamed missed sneaky functions in round.c (+ clang-format...) * Renamed a few more missed constants * Updated rng_update() documentation * Apply suggestions from Copilot's code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Added missed suggestion * Updated rng_update() comment --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
6e7d8a8399
commit
7a5a4a1276
@@ -9,11 +9,11 @@
|
||||
#include <tonc.h>
|
||||
|
||||
static const Rect COUNTDOWN_TIMER_RECT = {208, 144, 240, 152};
|
||||
static uint timer = 0;
|
||||
static uint s_timer = 0;
|
||||
|
||||
void splash_screen_on_init(void)
|
||||
{
|
||||
timer = 0;
|
||||
s_timer = 0;
|
||||
|
||||
tte_printf("#{P:72,8; cx:0x%X000}DISCLAIMER", TTE_WHITE_PB);
|
||||
tte_printf(
|
||||
@@ -29,9 +29,9 @@ void splash_screen_on_init(void)
|
||||
|
||||
void splash_screen_on_update(void)
|
||||
{
|
||||
timer++;
|
||||
s_timer++;
|
||||
|
||||
if (timer < SPLASH_DURATION_FRAMES)
|
||||
if (s_timer < SPLASH_DURATION_FRAMES)
|
||||
{
|
||||
tte_erase_rect_wrapper(COUNTDOWN_TIMER_RECT);
|
||||
tte_printf(
|
||||
@@ -39,7 +39,7 @@ void splash_screen_on_update(void)
|
||||
COUNTDOWN_TIMER_RECT.left,
|
||||
COUNTDOWN_TIMER_RECT.top,
|
||||
TTE_WHITE_PB,
|
||||
1 + (SPLASH_DURATION_FRAMES - timer) / SPLASH_FPS
|
||||
1 + (SPLASH_DURATION_FRAMES - s_timer) / SPLASH_FPS
|
||||
);
|
||||
|
||||
if (!key_hit(KEY_ANY))
|
||||
|
||||
Reference in New Issue
Block a user