mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:00:06 +00:00 
			
		
		
		
	Added inverted threshold for radar sites
This commit is contained in:
		
							parent
							
								
									f7a1668c3f
								
							
						
					
					
						commit
						74066aa195
					
				
					 5 changed files with 12 additions and 8 deletions
				
			
		|  | @ -65,7 +65,9 @@ void RadarSiteLayer::Render( | |||
|    auto mapDistance = util::maplibre::GetMapDistance(params); | ||||
|    auto threshold   = units::length::nautical_miles<double>( | ||||
|       settings::GeneralSettings::Instance().radar_site_threshold().GetValue()); | ||||
|    if (threshold.value() != 0.0 && mapDistance > threshold) | ||||
| 
 | ||||
|    if (!(threshold.value() == 0.0 || mapDistance <= threshold || | ||||
|          (threshold.value() < 0 && mapDistance >= -threshold))) | ||||
|    { | ||||
|       return; | ||||
|    } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak