Skip to content

Commit

Permalink
bugfif for release
Browse files Browse the repository at this point in the history
  • Loading branch information
GER-Space committed Dec 17, 2018
1 parent 9bb32e1 commit 3464e7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Core/LaunchSites/LaunchSiteManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ internal static void CreateLaunchSite(StaticInstance instance, ConfigNode cfgNod
instance.launchSite = mySite;
RegisterLaunchSite(mySite);
instance.groupCenter.launchsites.Add(mySite);
if (mySite.LaunchSiteIsHidden)
{
instance.groupCenter.hidden = true;
}
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Modules/MapIcons/MapIconDraw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void drawTrackingStations()
continue;
}

if (groundStation.groupCenter.isHidden && !isOpen)
if (groundStation.groupCenter.isHidden && !isOpen || groundStation.groupCenter.isHidden && (((GroundStation)groundStation.myFacilities[0]).OpenCost == 0) )
{
continue;
}
Expand Down Expand Up @@ -323,7 +323,7 @@ private void DrawSpaceCenters()
continue;
}

if (customSpaceCenter.staticInstance.groupCenter.isHidden && !cscIsOpen)
if ((customSpaceCenter.staticInstance.groupCenter != null) && (customSpaceCenter.staticInstance.groupCenter.isHidden && !cscIsOpen))
{
continue;
}
Expand Down

0 comments on commit 3464e7e

Please sign in to comment.