1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00

style is good now probably

This commit is contained in:
NotAdam 2019-01-26 19:45:42 +11:00
parent 29edf87924
commit 6ae66c1edb

View file

@ -74,7 +74,8 @@ bool TiledNavmeshGenerator::init( const std::string& path )
printf( "[Navmesh] - Tiles %d x %d\n", tw, th );
int tileBits = rcMin( ( int ) ilog2( nextPow2( tw * th ) ), 14 );
if ( tileBits > 14 ) tileBits = 14;
if( tileBits > 14 )
tileBits = 14;
int polyBits = 22 - tileBits;
m_maxTiles = 1 << tileBits;
m_maxPolysPerTile = 1 << polyBits;