Stop the hacky AI unpacking the fact into a mcv if it starts with a fact instead of a mcv

This commit is contained in:
Scott_NZ
2012-08-12 03:47:15 +12:00
parent 168ff6dc82
commit 32a37d8c0f

View File

@@ -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<BaseBuilding>());
.FirstOrDefault(a => a.Owner == p && a.HasTrait<BaseBuilding>() && a.HasTrait<Mobile>());
if (mcv != null)
{