Consider dead aircraft to no longer be in range

This commit is contained in:
Oliver Brakmann
2019-02-02 18:58:22 +01:00
committed by Paul Chote
parent ee19cb61b4
commit 3093f67427
2 changed files with 4 additions and 0 deletions

View File

@@ -106,6 +106,8 @@ namespace OpenRA.Mods.Common.Traits
Action<Actor> onRemovedFromWorld = a =>
{
aircraftInRange[a] = false;
// Checking for attack range is not relevant here because
// aircraft may be shot down before entering. Thus we remove
// the camera and beacon only if the whole squad is dead.

View File

@@ -133,6 +133,8 @@ namespace OpenRA.Mods.Common.Traits
Action<Actor> onRemovedFromWorld = a =>
{
aircraftInRange[a] = false;
// Checking for attack range is not relevant here because
// aircraft may be shot down before entering. Thus we remove
// the camera and beacon only if the whole squad is dead.