fix blinking on fading out occuring sometimes

This commit is contained in:
Sebastian Krzyszkowiak 2012-09-26 22:57:47 +02:00
parent 1caeb03ab4
commit 0eacf9a67d
2 changed files with 5 additions and 2 deletions

View file

@ -296,7 +296,10 @@ void FadeGameState(struct Game *game, bool in) {
}
}
al_destroy_bitmap(bitmap);
DrawGameState(game);
al_clear_to_color(al_map_rgb(0,0,0));
if (in) {
DrawGameState(game);
}
}
/*! \brief Scales bitmap using software linear filtering method to current target. */

View file

@ -42,8 +42,8 @@ void Moonwalk_Draw(struct Game *game) {
if (game->level.moonwalk.derpy_pos>1) {
game->level.moonwalk.derpy_pos=-1;
UnloadGameState(game);
Level_Passed(game);
UnloadGameState(game);
if (game->level.current_level<6) {
game->gamestate = GAMESTATE_LOADING;
game->loadstate = GAMESTATE_MAP;