mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 18:56:43 +00:00 
			
		
		
		
	Explicitly use RC_NULL_AREA constant to mark unwalkable areas
This commit is contained in:
		
							parent
							
								
									330e596c64
								
							
						
					
					
						commit
						e24d4d7052
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -99,7 +99,7 @@ namespace | |||
| 
 | ||||
|         { | ||||
|             const auto& chunkyMesh = recastMesh.getChunkyTriMesh(); | ||||
|             std::vector<unsigned char> areas(chunkyMesh.getMaxTrisPerChunk(), 0); | ||||
|             std::vector<unsigned char> areas(chunkyMesh.getMaxTrisPerChunk(), RC_NULL_AREA); | ||||
|             const osg::Vec2f tileBoundsMin(config.bmin[0], config.bmin[2]); | ||||
|             const osg::Vec2f tileBoundsMax(config.bmax[0], config.bmax[2]); | ||||
|             std::vector<std::size_t> cids; | ||||
|  | @ -116,7 +116,7 @@ namespace | |||
|                     areas.begin(), | ||||
|                     std::min(areas.begin() + static_cast<std::ptrdiff_t>(chunk.mSize), | ||||
|                     areas.end()), | ||||
|                     0 | ||||
|                     RC_NULL_AREA | ||||
|                 ); | ||||
| 
 | ||||
|                 rcMarkWalkableTriangles( | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue