1
This commit is contained in:
parent
634b903021
commit
09ae47a86a
@ -1200,7 +1200,8 @@ void MapInstance::MarkConnectablePolys()
|
|||||||
{
|
{
|
||||||
dtPolyRef startRef = INVALID_NAVMESH_POLYREF;
|
dtPolyRef startRef = INVALID_NAVMESH_POLYREF;
|
||||||
{
|
{
|
||||||
#if 0
|
glm::vec3 pos;
|
||||||
|
|
||||||
dtQueryFilter filter;
|
dtQueryFilter filter;
|
||||||
filter.setIncludeFlags(0xffff);
|
filter.setIncludeFlags(0xffff);
|
||||||
filter.setExcludeFlags(0);
|
filter.setExcludeFlags(0);
|
||||||
@ -1223,10 +1224,7 @@ void MapInstance::MarkConnectablePolys()
|
|||||||
unsigned int it = 0;
|
unsigned int it = 0;
|
||||||
unsigned int ip = 0;
|
unsigned int ip = 0;
|
||||||
navmesh_->decodePolyId(startRef, slat, it, ip);
|
navmesh_->decodePolyId(startRef, slat, it, ip);
|
||||||
poly_idx = ip;
|
|
||||||
return &tile->polys[ip];
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if (!startRef) {
|
if (!startRef) {
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user