mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 03:26:38 +00:00 
			
		
		
		
	Don't try to render a map in empty cells
This commit is contained in:
		
							parent
							
								
									038c5c3e82
								
							
						
					
					
						commit
						3efbb5e728
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -119,6 +119,10 @@ void LocalMap::requestMap(MWWorld::Ptr::CellStore* cell) | |||
| void LocalMap::requestMap(MWWorld::Ptr::CellStore* cell, | ||||
|                             AxisAlignedBox bounds) | ||||
| { | ||||
|     // if we're in an empty cell, don't bother rendering anything
 | ||||
|     if (bounds.isNull ()) | ||||
|         return; | ||||
| 
 | ||||
|     mInterior = true; | ||||
|     mBounds = bounds; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue