Pulse the rally point circles when a new location is set.
This commit is contained in:
@@ -32,10 +32,17 @@ namespace OpenRA.Mods.RA.Effects
|
|||||||
circles.Play("circles");
|
circles.Play("circles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int2 cachedLocation;
|
||||||
public void Tick( World world )
|
public void Tick( World world )
|
||||||
{
|
{
|
||||||
flag.Tick();
|
flag.Tick();
|
||||||
circles.Tick();
|
circles.Tick();
|
||||||
|
if (cachedLocation != rp.rallyPoint)
|
||||||
|
{
|
||||||
|
cachedLocation = rp.rallyPoint;
|
||||||
|
circles.Play("circles");
|
||||||
|
}
|
||||||
|
|
||||||
if (!building.IsInWorld || building.IsDead())
|
if (!building.IsInWorld || building.IsDead())
|
||||||
world.AddFrameEndTask(w => w.Remove(this));
|
world.AddFrameEndTask(w => w.Remove(this));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user