mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
loading: fix resetting showLoading var too early
This commit is contained in:
parent
6c59ef1049
commit
56eb5a6ef4
1 changed files with 1 additions and 2 deletions
|
@ -278,8 +278,6 @@ static inline bool MainloopTick(struct Game* game) {
|
|||
tmp->api->Gamestate_PostLoad(game, tmp->data);
|
||||
}
|
||||
|
||||
tmp->showLoading = true;
|
||||
|
||||
game->_priv.loading.progress++;
|
||||
CalculateProgress(game);
|
||||
PrintConsole(game, "Gamestate \"%s\" loaded successfully in %f seconds.", tmp->name, al_get_time() - time);
|
||||
|
@ -291,6 +289,7 @@ static inline bool MainloopTick(struct Game* game) {
|
|||
if (tmp->showLoading) {
|
||||
(*game->_priv.loading.gamestate->api->Gamestate_Stop)(game, game->_priv.loading.gamestate->data);
|
||||
}
|
||||
tmp->showLoading = true;
|
||||
al_resume_timer(game->_priv.timer);
|
||||
game->_priv.timestamp = al_get_time();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue