Make the sound engine less dumb about music. Fix the music player not knowing about already playing tracks.
This commit is contained in:
@@ -51,10 +51,10 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
if (!Game.Settings.Game.ShellmapMusic ||
|
||||
Info.Music == null ||
|
||||
!Rules.Music[Info.Music].Exists)
|
||||
!Rules.Music.ContainsKey(Info.Music))
|
||||
return;
|
||||
|
||||
Sound.PlayMusicThen(Rules.Music[Info.Music].Filename, () => LoopMusic());
|
||||
Sound.PlayMusicThen(Rules.Music[Info.Music], () => LoopMusic());
|
||||
}
|
||||
|
||||
int ticks = 0;
|
||||
|
||||
Reference in New Issue
Block a user