mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-19 12:25:44 +01:00
fix: two gametimes were present
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user