From d214571ef9187cb65de0224c0b3f063203f60dd0 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Wed, 22 Jul 2026 13:00:45 +0200 Subject: [PATCH] Time passes correctly now. --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index f6d844f..e1deb81 100644 --- a/src/game.c +++ b/src/game.c @@ -44,7 +44,7 @@ void game_handle_event(void) static inline void update_time(void) { - clock_t last_clock_state = clock(); + static clock_t last_clock_state = 0; clock_t start_clock = clock(); game.delta_time_ms = (float)(start_clock - last_clock_state) * 1000.0f / CLOCKS_PER_SEC; last_clock_state = start_clock;