mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:30:04 +00:00 
			
		
		
		
	Do not display an elevation number when there is non
This commit is contained in:
		
							parent
							
								
									484c08c455
								
							
						
					
					
						commit
						24f5f0a3e3
					
				
					 12 changed files with 166 additions and 145 deletions
				
			
		|  | @ -242,7 +242,9 @@ void Level2SettingsWidget::UpdateElevationSelection(float elevation) | |||
| 
 | ||||
| void Level2SettingsWidget::UpdateSettings(map::MapWidget* activeMap) | ||||
| { | ||||
|    float              currentElevation = activeMap->GetElevation(); | ||||
|    std::optional<float> currentElevationOption = activeMap->GetElevation(); | ||||
|    float                currentElevation = | ||||
|       currentElevationOption.has_value() ? *currentElevationOption : 0.0f; | ||||
|    std::vector<float> elevationCuts    = activeMap->GetElevationCuts(); | ||||
| 
 | ||||
|    if (p->elevationCuts_ != elevationCuts) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak