This commit is contained in:
aozhiwei 2023-05-15 17:11:24 +08:00
parent 09ae47a86a
commit dd92b0e4bb

View File

@ -1216,15 +1216,7 @@ void MapInstance::MarkConnectablePolys()
pos1[1] = pos.y;
pos1[2] = pos.z;
const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0);
assert(tile);
navmesh_query_->findNearestPoly(pos1, extents, &filter, &startRef, nearestPt);
if (startRef) {
unsigned int slat = 0;
unsigned int it = 0;
unsigned int ip = 0;
navmesh_->decodePolyId(startRef, slat, it, ip);
}
}
if (!startRef) {
abort();