allow chrono and iron curtain to work on other players' units

This commit is contained in:
Chris Forbes
2010-01-27 20:20:46 +13:00
parent 00bc886b01
commit 5916cb473c
2 changed files with 2 additions and 3 deletions

View File

@@ -90,8 +90,7 @@ namespace OpenRa.Traits
{
var loc = mi.Location + Game.viewport.Location;
var underCursor = world.FindUnits(loc, loc)
.Where(a => a.Owner == world.LocalPlayer
&& a.traits.Contains<Chronoshiftable>()
.Where(a => a.Owner != null && a.traits.Contains<Chronoshiftable>()
&& a.traits.Contains<Selectable>()).FirstOrDefault();
if (underCursor != null)