GpsDot removed when actor .Destroyed. GpsDot removed from BADR

This commit is contained in:
Mike Bundy
2011-04-21 02:06:58 +01:00
committed by Chris Forbes
parent bcbac667db
commit 25962d58c6
2 changed files with 5 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ namespace OpenRA.Mods.RA.Effects
public void Tick(World world)
{
show = false;
if (self.Destroyed)
world.AddFrameEndTask(w => w.Remove(this));
if (world.LocalPlayer == null)
return;