diff --git a/server/gameserver/navmeshhelper.h b/server/gameserver/navmeshhelper.h index 869b19f..260299c 100644 --- a/server/gameserver/navmeshhelper.h +++ b/server/gameserver/navmeshhelper.h @@ -83,8 +83,7 @@ inline bool checkOverlapRect(const float amin[2], const float amax[2], return overlap; } -#if 1 -static int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm, +inline int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm, float bmin[2], float bmax[2], int* ids, const int maxIds) { @@ -112,7 +111,6 @@ static int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm, } return n; } -#endif struct RasterizationContext { @@ -250,7 +248,6 @@ struct MeshProcess : public dtTileCacheMeshProcess struct BuilderParams { - float kCellSize = 64; const float kCellHeight = 64; const float kAgentMaxSlope = 90; const float kAgentHeight = 1; @@ -273,6 +270,8 @@ struct BuilderParams const int kMaxTiles = 0; const int kMaxPolysPerTile = 0; + float kCellSize = 64; + const float* bmin = nullptr; const float* bmax = nullptr; rcConfig cfg;