From 7c6d35e31810edc1c3eed744e66439982c09c309 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 5 Mar 2011 10:10:42 +1300 Subject: [PATCH] remove productionbar info leak --- OpenRA.Mods.RA/ProductionBar.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.RA/ProductionBar.cs b/OpenRA.Mods.RA/ProductionBar.cs index 86c693dce6..10f1ae0dd0 100644 --- a/OpenRA.Mods.RA/ProductionBar.cs +++ b/OpenRA.Mods.RA/ProductionBar.cs @@ -26,6 +26,10 @@ namespace OpenRA.Mods.RA public float GetValue() { + // only people we like should see our production status. + if (self.World.LocalPlayer != null && self.Owner.Stances[self.World.LocalPlayer] != Stance.Ally) + return 0; + var queue = self.TraitsImplementing().FirstOrDefault(q => q.CurrentItem() != null); if (queue == null) {