From 5aa475c577824f4f64d03dbd9d19799bc4c0bf33 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Dec 2022 00:08:30 +0000 Subject: [PATCH] Update GameEngine.c --- src/GameEngine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameEngine.c b/src/GameEngine.c index 814e1dc..99b1f1c 100644 --- a/src/GameEngine.c +++ b/src/GameEngine.c @@ -725,9 +725,9 @@ void update() { u64 current_time = SDL_GetTicks64(); +#ifndef DEBUG_ENGINE // Get the delta time in seconds since the SDL_GetTicks64() returns the // time in milliseconds -#ifndef DEBUG_ENGINE GameEngine.delta = (current_time - GameEngine.last_time) / 1000.0f; #endif /* !DEBUG_ENGINE */