mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
unload loading screen on exit
This commit is contained in:
parent
c8356b815b
commit
9a43132af3
1 changed files with 1 additions and 1 deletions
|
@ -517,12 +517,12 @@ int main(int argc, char **argv){
|
|||
tmp=tmp->next;
|
||||
}
|
||||
|
||||
// TODO: proper loading state handling
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
PrintConsole(&game, "Shutting down...");
|
||||
DrawConsole(&game);
|
||||
al_flip_display();
|
||||
al_rest(0.1);
|
||||
(*game._priv.loading.Unload)(&game, game._priv.loading.data);
|
||||
al_destroy_timer(game._priv.timer);
|
||||
Console_Unload(&game);
|
||||
al_destroy_display(game.display);
|
||||
|
|
Loading…
Reference in a new issue