Fix airstrike and paratroopers power not removing cameras at the map edge

This commit is contained in:
abcdefg30
2020-06-17 12:23:59 +02:00
committed by reaperrr
parent 5280637adf
commit 9a3447d863
2 changed files with 6 additions and 6 deletions

View File

@@ -131,9 +131,9 @@ namespace OpenRA.Mods.Common.Traits
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.
if (aircraftInRange.All(kv => kv.Key.IsDead))
// aircraft may be shot down before entering the range.
// If at the map's edge, they may be removed from world before leaving.
if (aircraftInRange.All(kv => !kv.Key.IsInWorld))
{
RemoveCamera(camera);
RemoveBeacon(beacon);

View File

@@ -161,9 +161,9 @@ namespace OpenRA.Mods.Common.Traits
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.
if (aircraftInRange.All(kv => kv.Key.IsDead))
// aircraft may be shot down before entering the range.
// If at the map's edge, they may be removed from world before leaving.
if (aircraftInRange.All(kv => !kv.Key.IsInWorld))
{
RemoveCamera(camera);
RemoveBeacon(beacon);