remaining dumbness removed.

This commit is contained in:
Chris Forbes
2010-07-26 21:35:00 +12:00
parent 3526c05dc8
commit d774817b0e

View File

@@ -209,7 +209,7 @@ namespace OpenRA.Traits
} }
// We can enter a cell with nonshareable units only if we can crush all of them // We can enter a cell with nonshareable units only if we can crush all of them
if (Info.Crushes == null && nonshareable.Count() > 0) if (Info.Crushes == null && nonshareable.Length > 0)
return false; return false;
if (nonshareable.Length > 0 && nonshareable.Any(a => !(a.traits.Contains<ICrushable>() && if (nonshareable.Length > 0 && nonshareable.Any(a => !(a.traits.Contains<ICrushable>() &&