update the timestamp after Gamestate_Start to prevent high delta jump

This commit is contained in:
Sebastian Krzyszkowiak 2018-07-05 02:33:59 +02:00
parent d512b31889
commit 2d905ce3c0

View file

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