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

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

View File

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