Merge pull request #8920 from pchote/fix-map-border

Account for disabled shroud/fog in ShroudRenderer.
This commit is contained in:
abcdefg30
2015-08-04 12:27:26 +02:00
2 changed files with 9 additions and 9 deletions

View File

@@ -282,7 +282,7 @@ namespace OpenRA.Traits
return explored.Contains(uv) && explored[uv] && (generatedShroudCount[uv] == 0 || visibleCount[uv] > 0);
}
bool ShroudEnabled { get { return !Disabled && self.World.LobbyInfo.GlobalSettings.Shroud; } }
public bool ShroudEnabled { get { return !Disabled && self.World.LobbyInfo.GlobalSettings.Shroud; } }
/// <summary>
/// Returns a fast exploration lookup that skips the usual validation.
@@ -329,7 +329,7 @@ namespace OpenRA.Traits
return visibleCount.Contains(uv) && visibleCount[uv] > 0;
}
bool FogEnabled { get { return !Disabled && self.World.LobbyInfo.GlobalSettings.Fog; } }
public bool FogEnabled { get { return !Disabled && self.World.LobbyInfo.GlobalSettings.Fog; } }
/// <summary>
/// Returns a fast visibility lookup that skips the usual validation.