use floats for ctx.frame_number and ctx.random_seed

This commit is contained in:
veclavtalica
2025-01-10 02:20:21 +03:00
parent f3848d2d52
commit 951d9c76c8
4 changed files with 9 additions and 9 deletions

View File

@ -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;