completely unnecessary fix for drawing console at quitting :D

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-25 19:28:47 +01:00
parent f488b7ffaf
commit 386275b7a7

View file

@ -320,13 +320,15 @@ int main(int argc, char **argv){
al_flip_display(); al_flip_display();
} }
} }
UnloadGameState(&game); UnloadGameState(&game);
if (game.gamestate != GAMESTATE_LOADING) { if (game.gamestate != GAMESTATE_LOADING) {
game.gamestate = GAMESTATE_LOADING; game.gamestate = GAMESTATE_LOADING;
UnloadGameState(&game); UnloadGameState(&game);
} }
al_clear_to_color(al_map_rgb(0,0,0));
PrintConsole(&game, "Shutting down..."); PrintConsole(&game, "Shutting down...");
DrawConsole(&game);
al_flip_display();
al_rest(0.1); al_rest(0.1);
al_destroy_timer(game.timer); al_destroy_timer(game.timer);
al_destroy_display(game.display); al_destroy_display(game.display);