From 31167047a7a1b04c402a1d262a3ad3a31b3b767d Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 9 Jul 2024 15:37:03 +0300 Subject: [PATCH] util.c: rename tick_ftimer_repeat to repeat_ftimer --- src/util.c | 2 +- src/util.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util.c b/src/util.c index ba22cb2..f3d4730 100644 --- a/src/util.c +++ b/src/util.c @@ -194,7 +194,7 @@ void tick_ftimer(float *value) { *value = MAX(*value - ((float)ctx.delta_time / (float)ctx.clocks_per_second), 0.0f); } -bool tick_ftimer_repeat(float *value, float at) { +bool repeat_ftimer(float *value, float at) { *value -= (float)ctx.delta_time / (float)ctx.clocks_per_second; if (*value < 0.0f) { *value += at; diff --git a/src/util.h b/src/util.h index 17f439f..bb90b3e 100644 --- a/src/util.h +++ b/src/util.h @@ -123,9 +123,9 @@ void tick_timer(int *value); /* note that it should be decremented only on the next tick after its creation */ void tick_ftimer(float *value); -/* same as `tick_ftimer` but instaed of clamping it repeats */ +/* same as `tick_ftimer` but instead of clamping it repeats */ /* returns true if value was cycled */ -bool tick_ftimer_repeat(float *value, float at); +bool repeat_ftimer(float *value, float at); #endif