mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 03:26:38 +00:00 
			
		
		
		
	Do not show cell markers for interior cells
This commit is contained in:
		
							parent
							
								
									a97eae864d
								
							
						
					
					
						commit
						d60786b5da
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -3,6 +3,7 @@ | |||
| #include <osg/Group> | ||||
| 
 | ||||
| #include <components/misc/stringops.hpp> | ||||
| #include <components/esm/loadcell.hpp> | ||||
| #include <components/esm/loadland.hpp> | ||||
| 
 | ||||
| #include "../../model/world/idtable.hpp" | ||||
|  | @ -308,13 +309,20 @@ void CSVRender::Cell::setCellArrows (int mask) | |||
| void CSVRender::Cell::setCellMarker() | ||||
| { | ||||
|     bool cellExists = false; | ||||
|     bool isInteriorCell = false; | ||||
| 
 | ||||
|     int cellIndex = mData.getCells().searchId(mId); | ||||
|     if (cellIndex > -1) | ||||
|     { | ||||
|         cellExists = !mData.getCells().getRecord(cellIndex).isDeleted(); | ||||
|         const CSMWorld::Record<CSMWorld::Cell>& cellRecord = mData.getCells().getRecord(cellIndex); | ||||
|         cellExists = !cellRecord.isDeleted(); | ||||
|         isInteriorCell = cellRecord.get().mData.mFlags & ESM::Cell::Interior; | ||||
|     } | ||||
| 
 | ||||
|     if (!isInteriorCell) { | ||||
|         mCellMarker.reset(new CellMarker(mCellNode, mCoordinates, cellExists)); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| CSMWorld::CellCoordinates CSVRender::Cell::getCoordinates() const | ||||
| { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue