mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 14:16:44 +01:00
unload GAMESTATE_LOADING state on quit
This commit is contained in:
parent
30fcc82d85
commit
1487ce0c30
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,10 @@ int main(int argc, char **argv){
|
||||||
}
|
}
|
||||||
|
|
||||||
UnloadGameState(&game);
|
UnloadGameState(&game);
|
||||||
|
if (game.gamestate != GAMESTATE_LOADING) {
|
||||||
|
game.gamestate = GAMESTATE_LOADING;
|
||||||
|
UnloadGameState(&game);
|
||||||
|
}
|
||||||
PrintConsole(&game, "Shutting down...");
|
PrintConsole(&game, "Shutting down...");
|
||||||
al_rest(0.1);
|
al_rest(0.1);
|
||||||
al_destroy_timer(game.timer);
|
al_destroy_timer(game.timer);
|
||||||
|
|
Loading…
Reference in a new issue