util.c: rename tick_ftimer_repeat to repeat_ftimer
This commit is contained in:
parent
f98f9e1300
commit
31167047a7
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user