Skip to content

Commit

Permalink
Fix for simplified security view overriding show truesec
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Aug 21, 2020
1 parent 851eac9 commit 1a4ba8f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions RegionControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1829,10 +1829,8 @@ private void AddSystemsToMap()
Coalition SystemCoalition = null;

double trueSecVal = system.ActualSystem.TrueSec;
bool gradeTruesec = MapConf.ShowTrueSec;
if (MapConf.ShowSimpleSecurityView)
{
// gradeTruesec = false;
if (system.ActualSystem.TrueSec >= 0.45)
{
trueSecVal = 1.0;
Expand All @@ -1841,13 +1839,9 @@ private void AddSystemsToMap()
{
trueSecVal = 0.4;
}
else
{
trueSecVal = 0.0;
}
}

Brush securityColorFill = new SolidColorBrush(MapColours.GetSecStatusColour(trueSecVal, gradeTruesec));
Brush securityColorFill = new SolidColorBrush(MapColours.GetSecStatusColour(trueSecVal, MapConf.ShowTrueSec));

if (MapConf.SOVBasedITCU)
{
Expand Down

0 comments on commit 1a4ba8f

Please sign in to comment.