Load music after mounting map

This commit is contained in:
atlimit8
2015-09-29 16:31:15 -05:00
parent 90bdeb1e92
commit 63513af027
3 changed files with 6 additions and 14 deletions

View File

@@ -171,6 +171,11 @@ namespace OpenRA
using (new Support.PerfTimer("Map.SequenceProvider.Preload"))
map.SequenceProvider.Preload();
// Load music with map assets mounted
using (new Support.PerfTimer("Map.Music"))
foreach (var entry in map.Rules.Music)
entry.Value.Load();
VoxelProvider.Initialize(Manifest.VoxelSequences, map.VoxelSequenceDefinitions);
VoxelLoader.Finish();