Merge pull request #11473 from pchote/shroud-map-crate

Disable hide map crate if explored map is enabled.
This commit is contained in:
reaperrr
2016-06-19 18:32:11 +02:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ namespace OpenRA.Mods.Common.Traits
public override int GetSelectionShares(Actor collector)
{
// Don't ever hide the map for people who have GPS.
if (collector.Owner.HasFogVisibility)
// Don't hide the map if the shroud is force-revealed
if (collector.Owner.HasFogVisibility || collector.Owner.Shroud.ExploreMapEnabled)
return 0;
return base.GetSelectionShares(collector);