Merge pull request #6505 from abcdefg30/beaconfix

Remove beacons when the badgers get shot down
This commit is contained in:
Paul Chote
2014-09-20 21:20:35 +12:00
2 changed files with 18 additions and 0 deletions

View File

@@ -106,6 +106,15 @@ namespace OpenRA.Mods.RA
}
camera = null;
if (beacon != null)
{
self.World.AddFrameEndTask(w =>
{
w.Remove(beacon);
beacon = null;
});
}
}
};

View File

@@ -115,6 +115,15 @@ namespace OpenRA.Mods.RA
}
camera = null;
if (beacon != null)
{
self.World.AddFrameEndTask(w =>
{
w.Remove(beacon);
beacon = null;
});
}
}
};