diff --git a/RecastDemo/Include/InputGeom.h b/RecastDemo/Include/InputGeom.h index 2aca9920..39a1122f 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -142,7 +142,6 @@ public: [[nodiscard]] const float* getOffMeshConnectionRads() const { return offMeshConRads; } [[nodiscard]] const unsigned char* getOffMeshConnectionDirs() const { return offMeshConDirs; } [[nodiscard]] const unsigned char* getOffMeshConnectionAreas() const { return offMeshConAreas; } - [[nodiscard]] const unsigned short* getOffMeshConnectionFlags() const { return offMeshConFlags; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index d639c514..11f330c5 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -711,7 +711,7 @@ bool Sample_SoloMesh::build() params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); - params.offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); + params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount; params.walkableHeight = agentHeight; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 7ce957b0..22665de7 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -488,7 +488,7 @@ struct MeshProcess : dtTileCacheMeshProcess params->offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params->offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params->offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); - params->offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); + params->offMeshConFlags = inputGeometry->offMeshConFlags; params->offMeshConUserID = inputGeometry->offMeshConId; params->offMeshConCount = inputGeometry->offMeshConCount; } diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index b0729b4f..69bdd78e 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1211,7 +1211,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); - params.offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); + params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount; params.walkableHeight = agentHeight;