diff --git a/src/maploader/renderinfo.cpp b/src/maploader/renderinfo.cpp index 4faeb0eab..7a25d1335 100644 --- a/src/maploader/renderinfo.cpp +++ b/src/maploader/renderinfo.cpp @@ -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)]); + } } } }