Fix rally point sprites not being truely optional.
This commit is contained in:
committed by
Gustas
parent
c5e9567875
commit
9e659cacf2
@@ -34,11 +34,17 @@ namespace OpenRA.Mods.Common.Effects
|
|||||||
|
|
||||||
if (rp.Info.Image != null)
|
if (rp.Info.Image != null)
|
||||||
{
|
{
|
||||||
flag = new Animation(building.World, rp.Info.Image);
|
if (rp.Info.FlagSequence != null)
|
||||||
flag.PlayRepeating(rp.Info.FlagSequence);
|
{
|
||||||
|
flag = new Animation(building.World, rp.Info.Image);
|
||||||
|
flag.PlayRepeating(rp.Info.FlagSequence);
|
||||||
|
}
|
||||||
|
|
||||||
circles = new Animation(building.World, rp.Info.Image);
|
if (rp.Info.CirclesSequence != null)
|
||||||
circles.Play(rp.Info.CirclesSequence);
|
{
|
||||||
|
circles = new Animation(building.World, rp.Info.Image);
|
||||||
|
circles.Play(rp.Info.CirclesSequence);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateTargetLineNodes(building.World);
|
UpdateTargetLineNodes(building.World);
|
||||||
|
|||||||
Reference in New Issue
Block a user