From deed6b525d03362648eaba8d22ec6c62b0b21fc3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 14 Aug 2020 09:58:11 +0800 Subject: [PATCH] 1 --- server/gameserver/navmeshhelper.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;