1
This commit is contained in:
parent
09ae47a86a
commit
dd92b0e4bb
@ -1216,15 +1216,7 @@ void MapInstance::MarkConnectablePolys()
|
|||||||
pos1[1] = pos.y;
|
pos1[1] = pos.y;
|
||||||
pos1[2] = pos.z;
|
pos1[2] = pos.z;
|
||||||
|
|
||||||
const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0);
|
|
||||||
assert(tile);
|
|
||||||
navmesh_query_->findNearestPoly(pos1, extents, &filter, &startRef, nearestPt);
|
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) {
|
if (!startRef) {
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user