Documented ch Chompa

This commit is contained in:
Owlenuff
2024-09-30 22:25:10 +02:00
parent 1bfcd8ace5
commit da234765d7
9 changed files with 172 additions and 152 deletions

View File

@@ -598,16 +598,12 @@ void ml_defrag(void)
//ml_timer_update
//decrement a counter and returns True if timer reaches 0
bool ml_timer_update(f32 *timer, f32 delta)
{
if (*timer > 0)
{
bool ml_timer_update(f32 *timer, f32 delta) {
if (*timer > 0) {
*timer -= delta;
if (*timer <= 0)
{
if (*timer <= 0) {
*timer = 0;
return TRUE;
}
}