don't disable everyone's shroud when someone's GPS goes up

This commit is contained in:
Chris Forbes
2010-12-27 12:52:43 +13:00
parent 2cce1ce23c
commit 50834911fe

View File

@@ -38,8 +38,10 @@ namespace OpenRA.Mods.RA
Sound.PlayToPlayer(self.Owner, Info.LaunchSound);
w.Add(new SatelliteLaunch(self));
w.Add(new DelayedAction((Info as GpsPowerInfo).RevealDelay * 25,
() => self.Owner.Shroud.Disabled = true));
/* there is only one shroud, but it is misleadingly available through Player.Shroud */
w.Add(new DelayedAction((Info as GpsPowerInfo).RevealDelay * 25,
() => { if (self.Owner == self.World.LocalPlayer) self.World.LocalShroud.Disabled = true; }));
});
}
}