Process shared map includes as part of the mod rules.
This ensures that they are only updated once instead of repeating the updates for every map that includes them.
This commit is contained in:
@@ -146,15 +146,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
|
||||
Console.Write(" Updating system maps... ");
|
||||
|
||||
if (!skipMaps)
|
||||
{
|
||||
var mapsFailed = false;
|
||||
var externalFilenames = new HashSet<string>();
|
||||
foreach (var package in modData.MapCache.EnumerateMapPackagesWithoutCaching())
|
||||
{
|
||||
try
|
||||
{
|
||||
YamlFileSet mapFiles;
|
||||
var mapSteps = UpdateUtils.UpdateMap(modData, package, rule, out mapFiles);
|
||||
var mapSteps = UpdateUtils.UpdateMap(modData, package, rule, out mapFiles, externalFilenames);
|
||||
allFiles.AddRange(mapFiles);
|
||||
|
||||
if (mapSteps.Any())
|
||||
|
||||
Reference in New Issue
Block a user