Use RgbaColorRenderer in WeatherOverlay.

This commit is contained in:
Paul Chote
2015-12-10 18:01:45 +00:00
parent f6606afa8b
commit 8fc323602c
4 changed files with 12 additions and 4 deletions

View File

@@ -2694,6 +2694,14 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Added width support for line particles
if (engineVersion < 20151220 && node.Key == "WeatherOverlay")
{
var useSquares = node.Value.Nodes.FirstOrDefault(n => n.Key == "UseSquares");
if (useSquares != null && !FieldLoader.GetValue<bool>("UseSquares", useSquares.Value.Value))
node.Value.Nodes.Add(new MiniYamlNode("ParticleSize", "1, 1"));
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}