stop sounds on unloading menu after fade out

This commit is contained in:
Sebastian Krzyszkowiak 2012-02-18 08:28:30 +01:00
parent a63370f2c7
commit 50cab9981d

4
menu.c
View file

@ -127,8 +127,6 @@ void Menu_Preload(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));
@ -156,6 +154,8 @@ void Menu_Unload(struct Game *game) {
al_destroy_font(game->menu.font_subtitle);
al_destroy_font(game->menu.font);
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) {