This commit is contained in:
aozhiwei 2023-04-01 19:46:29 +08:00
parent 14164736df
commit 1ea5a77950
2 changed files with 2 additions and 1 deletions

View File

@ -520,7 +520,6 @@ dtPoly* MapInstance::GetPoly(glm::vec3 pos, int& poly_idx)
void MapInstance::MarkMapAreaPolys()
{
return;
const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0);
if (!tile) {
abort();
@ -574,6 +573,7 @@ void MapInstance::MarkMapAreaPolys()
}
break;
}
} else if ((poly->flags & SAMPLE_POLYFLAGS_GLASS) == SAMPLE_POLYFLAGS_GLASS) {
}
poly_ext_datas_.push_back(ext_flag);
}

View File

@ -71,6 +71,7 @@ class MapInstance : public std::enable_shared_from_this<MapInstance>
dtPolyRef polys_[MAX_POLYS];
std::vector<int> poly_ext_datas_;
std::vector<glm::vec3> grass_pos_hash_;
std::list<HouseInfo> houses_;