Always start the game with a random song.

This fixes the issue where games will always start
with shellmap theme.
This commit is contained in:
Paul Chote
2015-08-01 19:21:12 +01:00
parent 5952d8c979
commit a8ddc4e360

View File

@@ -61,10 +61,11 @@ namespace OpenRA.Traits
random = playlist.Shuffle(Game.CosmeticRandom).ToArray();
// Always start with a random song
currentSong = random.FirstOrDefault();
if (SongExists(info.StartingMusic))
{
currentSong = world.Map.Rules.Music[info.StartingMusic];
}
else if (SongExists(info.BackgroundMusic))
{
currentSong = currentBackgroundSong = world.Map.Rules.Music[info.BackgroundMusic];