mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
stop sounds on unloading menu after fade out
This commit is contained in:
parent
a63370f2c7
commit
50cab9981d
1 changed files with 2 additions and 2 deletions
4
menu.c
4
menu.c
|
@ -127,8 +127,6 @@ void Menu_Preload(struct Game *game) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu_Unload(struct Game *game) {
|
void Menu_Unload(struct Game *game) {
|
||||||
al_destroy_sample(game->menu.sample);
|
|
||||||
al_destroy_sample(game->menu.rain_sample);
|
|
||||||
|
|
||||||
game->menu.menu_fade_bitmap = al_create_bitmap(al_get_display_width(game->display), al_get_display_height(game->display));
|
game->menu.menu_fade_bitmap = al_create_bitmap(al_get_display_width(game->display), al_get_display_height(game->display));
|
||||||
|
|
||||||
|
@ -156,6 +154,8 @@ void Menu_Unload(struct Game *game) {
|
||||||
al_destroy_font(game->menu.font_subtitle);
|
al_destroy_font(game->menu.font_subtitle);
|
||||||
al_destroy_font(game->menu.font);
|
al_destroy_font(game->menu.font);
|
||||||
al_destroy_font(game->menu.font_selected);
|
al_destroy_font(game->menu.font_selected);
|
||||||
|
al_destroy_sample(game->menu.sample);
|
||||||
|
al_destroy_sample(game->menu.rain_sample);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu_Load(struct Game *game) {
|
void Menu_Load(struct Game *game) {
|
||||||
|
|
Loading…
Reference in a new issue