This commit is contained in:
veclavtalica 2025-01-31 05:11:10 +03:00
parent 3f264ca0ad
commit 24e8dc052d
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ static void *custom_alloc(void *ud, void *ptr, size_t osize, size_t nsize) {
void game_tick(void) {
if (ctx.initialization_needed) {
if (!ctx.udata)
ctx.udata = ccalloc(1, sizeof (State));
ctx.udata = calloc(1, sizeof (State));
State *state = ctx.udata;

View File

@ -33,7 +33,7 @@ bool start_sanity_timer(uint32_t milliseconds_to_expire) {
}
bool end_sanity_timer(void) {
void end_sanity_timer(void) {
SDL_RemoveTimer(sanity_timer);
sanity_timer = 0;
}

View File

@ -5,6 +5,6 @@
#include <stdint.h>
bool start_sanity_timer(uint32_t milliseconds_to_expire);
bool end_sanity_timer(void);
void end_sanity_timer(void);
#endif // TWN_TIMER_H