From: Ingo Ruhnke Date: Wed, 28 Apr 2004 17:27:15 +0000 (+0000) Subject: - added level done song, endseq needs to be a bit longer to get the song right X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=246341c4243afa18017a84ef221f3926e19c40be;hp=a92ab9fbc2697f511c9e61e661cc7a0d39f853d5;p=supertux.git - added level done song, endseq needs to be a bit longer to get the song right SVN-Revision: 813 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 06be6bb8e..7dca263e2 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -428,6 +428,7 @@ GameSession::check_end_conditions() end_sequence = true; last_x_pos = -1; music_manager->halt_music(); + music_manager->play_music(level_end_song); endsequence_timer.start(5000); // 5 seconds until we finish the map } else if (!end_sequence && tux->is_dead()) diff --git a/src/resources.cpp b/src/resources.cpp index 64a60cf8a..0651a9d50 100644 --- a/src/resources.cpp +++ b/src/resources.cpp @@ -37,6 +37,7 @@ Surface* img_cloud[2][4]; Surface* img_red_glow; MusicRef herring_song; +MusicRef level_end_song; SpriteManager* sprite_manager = 0; MusicManager* music_manager = 0; @@ -197,6 +198,7 @@ void loadshared() /* Herring song */ herring_song = music_manager->load_music(datadir + "/music/SALCON.MOD"); + level_end_song = music_manager->load_music(datadir + "/music/tux-leveldone.mod"); } diff --git a/src/resources.h b/src/resources.h index 0b7004b01..c74dd078d 100644 --- a/src/resources.h +++ b/src/resources.h @@ -36,6 +36,7 @@ extern Surface* img_super_bkgd; extern Surface* img_red_glow; extern MusicRef herring_song; +extern MusicRef level_end_song; extern SpriteManager* sprite_manager; extern MusicManager* music_manager;