Fix unshareable GPS

This commit is contained in:
Chris Forbes
2011-02-01 18:07:59 +13:00
parent e234816c13
commit ee144373a0

View File

@@ -59,10 +59,9 @@ namespace OpenRA.Mods.RA
void RefreshGps(Actor self) void RefreshGps(Actor self)
{ {
if (self.Owner == self.World.LocalPlayer) self.World.LocalShroud.Disabled = self.World.Queries.WithTrait<GpsPower>()
self.World.LocalShroud.Disabled = self.World.Queries.WithTrait<GpsPower>() .Any(p => p.Actor.Owner.Stances[self.Owner] == Stance.Ally &&
.Any(p => p.Actor.Owner.Stances[self.Owner] == Stance.Ally && p.Trait.Granted);
p.Trait.Granted);
} }
} }
} }