NO_MUSIC,
LEVEL_MUSIC,
HURRYUP_MUSIC,
- HERRING_MUSIC,
- CREDITS_MUSIC
+ HERRING_MUSIC
};
/// Sound manager
()->load_music(datadir + "/music/salcon.mod");
level_end_song = SoundManager::get
()->load_music(datadir + "/music/leveldone.mod");
- credits_song = SoundManager::get
- ()->load_music(datadir + "/music/credits.ogg");
}
/* Free shared data: */
extern MusicRef herring_song;
extern MusicRef level_end_song;
-extern MusicRef credits_song;
extern SpriteManager* sprite_manager;
extern TileManager* tile_manager;
case HERRING_MUSIC:
SoundManager::get()->play_music(herring_song);
break;
- case CREDITS_MUSIC:
- SoundManager::get()->play_music(credits_song);
- break;
default:
SoundManager::get()->halt_music();
break;
{
walking = true;
LevelEditor* leveleditor;
+ MusicRef credits_music;
Ticks::pause_init();
break;
case MNID_CREDITS:
fadeout(500);
- titlesession->get_current_sector()->play_music(CREDITS_MUSIC);
+ credits_music = SoundManager::get()->load_music(datadir + "/music/credits.ogg");
+ SoundManager::get()->play_music(credits_music);
display_text_file("credits.txt", SCROLL_SPEED_CREDITS, white_big_text , white_text, white_small_text, blue_text );
fadeout(500);
- //titlesession->get_current_sector()->play_music(LEVEL_MUSIC); //not needed
Menu::set_current(main_menu);
break;
case MNID_QUITMAINMENU: