1
This commit is contained in:
parent
14164736df
commit
1ea5a77950
@ -520,7 +520,6 @@ dtPoly* MapInstance::GetPoly(glm::vec3 pos, int& poly_idx)
|
|||||||
|
|
||||||
void MapInstance::MarkMapAreaPolys()
|
void MapInstance::MarkMapAreaPolys()
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0);
|
const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0);
|
||||||
if (!tile) {
|
if (!tile) {
|
||||||
abort();
|
abort();
|
||||||
@ -574,6 +573,7 @@ void MapInstance::MarkMapAreaPolys()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else if ((poly->flags & SAMPLE_POLYFLAGS_GLASS) == SAMPLE_POLYFLAGS_GLASS) {
|
||||||
}
|
}
|
||||||
poly_ext_datas_.push_back(ext_flag);
|
poly_ext_datas_.push_back(ext_flag);
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@ class MapInstance : public std::enable_shared_from_this<MapInstance>
|
|||||||
dtPolyRef polys_[MAX_POLYS];
|
dtPolyRef polys_[MAX_POLYS];
|
||||||
|
|
||||||
std::vector<int> poly_ext_datas_;
|
std::vector<int> poly_ext_datas_;
|
||||||
|
std::vector<glm::vec3> grass_pos_hash_;
|
||||||
|
|
||||||
std::list<HouseInfo> houses_;
|
std::list<HouseInfo> houses_;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user