From 4f082bbae38fe005b30a87b0204c8f01eda9dd5c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 12 Jan 2010 19:56:14 +1300 Subject: [PATCH] game --- OpenRa.Game/Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index 4ee33460d3..702f24fab4 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -309,8 +309,8 @@ namespace OpenRa.Game public static IEnumerable SelectActorsInBox(float2 a, float2 b) { return FindUnits(a, b) - .Where( x => x.LegacyInfo.Selectable ) - .GroupBy(x => (x.Owner == LocalPlayer) ? x.LegacyInfo.SelectionPriority : 0) + .Where( x => x.traits.Contains() ) + .GroupBy(x => (x.Owner == LocalPlayer) ? x.Info.Traits.Get().Priority : 0) .OrderByDescending(g => g.Key) .Select( g => g.AsEnumerable() ) .DefaultIfEmpty( new Actor[] {} )