Update GameEngine.c
This commit is contained in:
1 parent
5e6211c2a9
commit
5aa475c577
1 file changed
+1
-1
+1
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user