mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-26 14:56:39 +00:00 
			
		
		
		
	More readable code
This commit is contained in:
		
							parent
							
								
									780055899d
								
							
						
					
					
						commit
						6dc3d8b44b
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -496,12 +496,9 @@ bool CSVRender::TerrainTextureMode::isInCellSelection(int globalSelectionX, int | |||
| { | ||||
|     if (CSVRender::PagedWorldspaceWidget *paged = dynamic_cast<CSVRender::PagedWorldspaceWidget *> (&getWorldspaceWidget())) | ||||
|     { | ||||
|         CSMWorld::CellSelection selection = paged->getCellSelection(); | ||||
|         if (selection.has (CSMWorld::CellCoordinates::fromId( | ||||
|             CSMWorld::CellCoordinates::textureGlobalToCellId(std::make_pair(globalSelectionX, globalSelectionY))).first)) | ||||
|         { | ||||
|             return true; | ||||
|         } | ||||
|         std::pair<int, int> textureCoords = std::make_pair(globalSelectionX, globalSelectionY); | ||||
|         std::string cellId = CSMWorld::CellCoordinates::textureGlobalToCellId(textureCoords); | ||||
|         return paged->getCellSelection().has(CSMWorld::CellCoordinates::fromId(cellId).first); | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue