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) public void Tick(World world)
{ {
show = false; show = false;
if (self.Destroyed)
world.AddFrameEndTask(w => w.Remove(this));
if (world.LocalPlayer == null) if (world.LocalPlayer == null)
return; return;

View File

@@ -35,6 +35,7 @@ BADR:
Offset: -11, -11 Offset: -11, -11
Interval: 2 Interval: 2
-EjectOnDeath: -EjectOnDeath:
-GpsDot:
BADR.bomber: BADR.bomber:
CarpetBomb: CarpetBomb:
@@ -74,6 +75,7 @@ BADR.bomber:
Offset: -11, -11 Offset: -11, -11
Interval: 2 Interval: 2
-EjectOnDeath: -EjectOnDeath:
-GpsDot:
MIG: MIG:
Inherits: ^Plane Inherits: ^Plane