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:
parent
29edf87924
commit
6ae66c1edb
1 changed files with 17 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue