From 2d905ce3c06937bc4d36d93b3d60cbd956cfaab6 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 5 Jul 2018 02:33:59 +0200 Subject: [PATCH] update the timestamp after Gamestate_Start to prevent high delta jump --- src/libsuperderpy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsuperderpy.c b/src/libsuperderpy.c index 2263012..b83d3e6 100644 --- a/src/libsuperderpy.c +++ b/src/libsuperderpy.c @@ -467,6 +467,7 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void* g) { tmp->pending_start = false; (*tmp->api->Gamestate_Start)(game, tmp->data); al_resume_timer(game->_priv.timer); + game->_priv.timestamp = al_get_time(); PrintConsole(game, "Gamestate \"%s\" started successfully.", tmp->name); }