Pulse the rally point circles when a new location is set.

This commit is contained in:
Paul Chote
2010-11-30 14:40:38 +13:00
parent dfd5906d7f
commit b44cb9ad57

View File

@@ -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));
} }