From 3093f67427243985731cfe885ddca0abb543faac Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 2 Feb 2019 18:58:22 +0100 Subject: [PATCH] Consider dead aircraft to no longer be in range --- OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs | 2 ++ OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs index 912b0974a1..0b8a4e1d96 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/AirstrikePower.cs @@ -106,6 +106,8 @@ namespace OpenRA.Mods.Common.Traits Action 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. diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs index e8bb0c4aa8..f25258303f 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs @@ -133,6 +133,8 @@ namespace OpenRA.Mods.Common.Traits Action 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.