From 32a37d8c0fde6391293c5d9c0b4afe193f4ce569 Mon Sep 17 00:00:00 2001 From: Scott_NZ Date: Sun, 12 Aug 2012 03:47:15 +1200 Subject: [PATCH] Stop the hacky AI unpacking the fact into a mcv if it starts with a fact instead of a mcv --- OpenRA.Mods.RA/AI/HackyAI.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index 4fcb2bee83..3f98bb6a7b 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -14,7 +14,8 @@ using System.Linq; using OpenRA.FileFormats; using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; -using XRandom = OpenRA.Thirdparty.Random; +using XRandom = OpenRA.Thirdparty.Random; +using OpenRA.Mods.RA.Move; //TODO: // effectively clear the area around the production buildings' spawn points. @@ -437,7 +438,7 @@ namespace OpenRA.Mods.RA.AI { /* find our mcv and deploy it */ var mcv = self.World.Actors - .FirstOrDefault(a => a.Owner == p && a.HasTrait()); + .FirstOrDefault(a => a.Owner == p && a.HasTrait() && a.HasTrait()); if (mcv != null) {