fix: two gametimes were present

This commit is contained in:
2025-03-22 12:57:12 +01:00
parent 7e5236db7c
commit 68c61a04be
4 changed files with 15 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <stdlib.h>
#include <time.h>
typedef struct {
@@ -22,6 +23,10 @@ static inline gametime gametime_new(void) {
};
}
static inline void gametime_free(gametime* gt) {
free(gt);
}
// updates the internal variables
static inline void gametime_update(gametime* gt) {
struct timespec ts;