use floats for ctx.frame_number and ctx.random_seed
This commit is contained in:
@ -19,7 +19,7 @@ static void (*game_end_callback)(void);
|
||||
static x_watcher *watcher;
|
||||
static void *handle = NULL;
|
||||
|
||||
static uint64_t last_tick_modified;
|
||||
static float last_tick_modified;
|
||||
static bool loaded_after_modification = true;
|
||||
static SDL_mutex *lock;
|
||||
|
||||
@ -59,7 +59,7 @@ static void load_game_object(void) {
|
||||
|
||||
handle = new_handle;
|
||||
|
||||
if (ctx.game.frame_number != 0)
|
||||
if (fabsf(0.0f - ctx.game.frame_number) > 0.00001f)
|
||||
log_info("Game object was reloaded\n");
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user