fix missing loading screens with static gamestates

This commit is contained in:
Sebastian Krzyszkowiak 2019-06-07 21:35:16 +02:00
parent 63e5210796
commit 5a437a27bf
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -404,7 +404,9 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
#endif
while (tmp) {
// don't show loading screen on init if requested
tmp->show_loading = game->_priv.params.show_loading_on_launch;
if (tmp->pending_load) {
tmp->show_loading = game->_priv.params.show_loading_on_launch;
}
#ifdef LIBSUPERDERPY_STATIC_GAMESTATES
if (tmp->next && strcmp(tmp->next->name, "loading") == 0) {
game->_priv.loading.gamestate = tmp->next;