Merge pull request #9488 from atlimit8/MapMusic

Map Music
This commit is contained in:
abcdefg30
2015-10-18 17:47:26 +02:00
14 changed files with 27 additions and 21 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();