Prevent support powers from creating two camera actors

This commit is contained in:
abcdefg30
2019-03-12 14:35:09 +01:00
committed by Paul Chote
parent aa9724cc40
commit a3325277d9
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits
Action<Actor> onEnterRange = a =>
{
// Spawn a camera and remove the beacon when the first plane enters the target area
if (info.CameraActor != null && !aircraftInRange.Any(kv => kv.Value))
if (info.CameraActor != null && camera == null && !aircraftInRange.Any(kv => kv.Value))
{
self.World.AddFrameEndTask(w =>
{