- fixed: 3D floor model sectors were not added to the sector lists for precise rendering.

This commit is contained in:
Christoph Oelckers 2021-09-13 22:27:31 +02:00
parent 17638426b9
commit 8c715d48cd

View file

@ -402,6 +402,10 @@ void MapLoader::InitVertexData()
for(auto &line : Level->lines)
{
if (line.Index() == 13380)
{
int a = 0;
}
for(int j = 0; j < 2; ++j)
{
vertex_t * v = j==0? line.v1 : line.v2;
@ -412,10 +416,13 @@ void MapLoader::InitVertexData()
if (sec)
{
extsector_t::xfloor &x = sec->e->XFloor;
AddToVertex(Index(sec), vt_sectorlists[Index(v)]);
if (sec->heightsec) AddToVertex(Index(sec->heightsec), vt_sectorlists[Index(v)]);
extsector_t::xfloor& x = sec->e->XFloor;
for (auto& ff : x.ffloors)
{
AddToVertex(Index(ff->model), vt_sectorlists[Index(v)]);
}
}
}
}