mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-13 04:27:59 +01:00
fix blinking on fading out occuring sometimes
This commit is contained in:
parent
1caeb03ab4
commit
0eacf9a67d
2 changed files with 5 additions and 2 deletions
|
@ -296,8 +296,11 @@ void FadeGameState(struct Game *game, bool in) {
|
|||
}
|
||||
}
|
||||
al_destroy_bitmap(bitmap);
|
||||
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. */
|
||||
void ScaleBitmap(ALLEGRO_BITMAP* source, int width, int height) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue