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

@@ -77,6 +77,7 @@ namespace OpenRA.Traits
bool fogEnabled;
public bool FogEnabled { get { return !Disabled && fogEnabled; } }
public bool ExploreMapEnabled { get; private set; }
public int Hash { get; private set; }
@@ -96,8 +97,8 @@ namespace OpenRA.Traits
var gs = self.World.LobbyInfo.GlobalSettings;
fogEnabled = gs.OptionOrDefault("fog", info.FogEnabled);
var exploreMap = gs.OptionOrDefault("explored", info.ExploredMapEnabled);
if (exploreMap)
ExploreMapEnabled = gs.OptionOrDefault("explored", info.ExploredMapEnabled);
if (ExploreMapEnabled)
self.World.AddFrameEndTask(w => ExploreAll());
}