Skip to content

Commit

Permalink
Zoom map troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
DMagic1 committed Sep 5, 2020
1 parent 33e6d94 commit b4f7101
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SCANsat/SCAN_Unity/SCAN_UI_ZoomMap.cs
Expand Up @@ -416,12 +416,14 @@ protected void calcTerrainLimits()

if (currentResource != null)
{
float resource = SCANUtil.ResourceOverlay(lat, lon, currentResource.Name, body, false) * 100f;
float resource = SCANUtil.ResourceOverlay(lat, lon, currentResource.Name, body, SCAN_Settings_Config.Instance.BiomeLock) * 100f;

if (resource < resourceMin)
resourceMin = resource;
if (resource > resourceMax)
resourceMax = resource;
//SCANUtil.SCANlog("Check Location: Lat: {3} x Long: {4}\nResource: {0} - Min: {1} - Max: {2}"
// , resource.ToString("F2"), resourceMin.ToString("F2"), resourceMax.ToString("F2"), lat.ToString("F2"), lon.ToString("F2") );
}
else
{
Expand Down

0 comments on commit b4f7101

Please sign in to comment.