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:
@@ -61,10 +61,11 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
random = playlist.Shuffle(Game.CosmeticRandom).ToArray();
|
random = playlist.Shuffle(Game.CosmeticRandom).ToArray();
|
||||||
|
|
||||||
|
// Always start with a random song
|
||||||
|
currentSong = random.FirstOrDefault();
|
||||||
|
|
||||||
if (SongExists(info.StartingMusic))
|
if (SongExists(info.StartingMusic))
|
||||||
{
|
|
||||||
currentSong = world.Map.Rules.Music[info.StartingMusic];
|
currentSong = world.Map.Rules.Music[info.StartingMusic];
|
||||||
}
|
|
||||||
else if (SongExists(info.BackgroundMusic))
|
else if (SongExists(info.BackgroundMusic))
|
||||||
{
|
{
|
||||||
currentSong = currentBackgroundSong = world.Map.Rules.Music[info.BackgroundMusic];
|
currentSong = currentBackgroundSong = world.Map.Rules.Music[info.BackgroundMusic];
|
||||||
|
|||||||
Reference in New Issue
Block a user