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)
|
||||
{
|
||||
flag = new Animation(building.World, rp.Info.Image);
|
||||
flag.PlayRepeating(rp.Info.FlagSequence);
|
||||
if (rp.Info.FlagSequence != null)
|
||||
{
|
||||
flag = new Animation(building.World, rp.Info.Image);
|
||||
flag.PlayRepeating(rp.Info.FlagSequence);
|
||||
}
|
||||
|
||||
circles = new Animation(building.World, rp.Info.Image);
|
||||
circles.Play(rp.Info.CirclesSequence);
|
||||
if (rp.Info.CirclesSequence != null)
|
||||
{
|
||||
circles = new Animation(building.World, rp.Info.Image);
|
||||
circles.Play(rp.Info.CirclesSequence);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateTargetLineNodes(building.World);
|
||||
|
||||
Reference in New Issue
Block a user