fixes
This commit is contained in:
parent
3f264ca0ad
commit
24e8dc052d
@ -87,7 +87,7 @@ static void *custom_alloc(void *ud, void *ptr, size_t osize, size_t nsize) {
|
|||||||
void game_tick(void) {
|
void game_tick(void) {
|
||||||
if (ctx.initialization_needed) {
|
if (ctx.initialization_needed) {
|
||||||
if (!ctx.udata)
|
if (!ctx.udata)
|
||||||
ctx.udata = ccalloc(1, sizeof (State));
|
ctx.udata = calloc(1, sizeof (State));
|
||||||
|
|
||||||
State *state = ctx.udata;
|
State *state = ctx.udata;
|
||||||
|
|
||||||
|
@ -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);
|
SDL_RemoveTimer(sanity_timer);
|
||||||
sanity_timer = 0;
|
sanity_timer = 0;
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
bool start_sanity_timer(uint32_t milliseconds_to_expire);
|
bool start_sanity_timer(uint32_t milliseconds_to_expire);
|
||||||
bool end_sanity_timer(void);
|
void end_sanity_timer(void);
|
||||||
|
|
||||||
#endif // TWN_TIMER_H
|
#endif // TWN_TIMER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user