Fix rally point sprites not being truely optional.

This commit is contained in:
Matthias Mailänder
2023-05-04 19:08:13 +02:00
committed by Gustas
parent c5e9567875
commit 9e659cacf2

View File

@@ -33,13 +33,19 @@ namespace OpenRA.Mods.Common.Effects
this.rp = rp; this.rp = rp;
if (rp.Info.Image != null) if (rp.Info.Image != null)
{
if (rp.Info.FlagSequence != null)
{ {
flag = new Animation(building.World, rp.Info.Image); flag = new Animation(building.World, rp.Info.Image);
flag.PlayRepeating(rp.Info.FlagSequence); flag.PlayRepeating(rp.Info.FlagSequence);
}
if (rp.Info.CirclesSequence != null)
{
circles = new Animation(building.World, rp.Info.Image); circles = new Animation(building.World, rp.Info.Image);
circles.Play(rp.Info.CirclesSequence); circles.Play(rp.Info.CirclesSequence);
} }
}
UpdateTargetLineNodes(building.World); UpdateTargetLineNodes(building.World);
} }