mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- fixed: 3D floor model sectors were not added to the sector lists for precise rendering.
This commit is contained in:
parent
17638426b9
commit
8c715d48cd
1 changed files with 9 additions and 2 deletions
|
@ -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)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue