From d2a1f9ea88c57715ead404b56e5563ae52996180 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 29 Mar 2021 20:29:09 +0200 Subject: [PATCH] - fixed issue with constantly regenerating sector ceiling triangle meshes. --- source/core/sectorgeometry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/core/sectorgeometry.cpp b/source/core/sectorgeometry.cpp index 32ab645b8..38c5c53cf 100644 --- a/source/core/sectorgeometry.cpp +++ b/source/core/sectorgeometry.cpp @@ -305,7 +305,7 @@ void SectorGeometry::ValidateSector(unsigned int secnum, int plane) sec->floorypan_ == compare->floorypan_ && sec->floorz == compare->floorz && wall[sec->wallptr].pos == data[secnum].poscompare && - wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare && + wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare2 && !(sec->dirty & 1) && data[secnum].planes[plane].vertices.Size() ) return; sec->dirty &= ~1; @@ -318,7 +318,8 @@ void SectorGeometry::ValidateSector(unsigned int secnum, int plane) sec->ceilingxpan_ == compare->ceilingxpan_ && sec->ceilingypan_ == compare->ceilingypan_ && sec->ceilingz == compare->ceilingz && - wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare && + wall[sec->wallptr].pos == data[secnum].poscompare && + wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare2 && !(sec->dirty & 2) && data[secnum].planes[plane].vertices.Size()) return; sec->dirty &= ~2;