- fixed issue with constantly regenerating sector ceiling triangle meshes.

This commit is contained in:
Christoph Oelckers 2021-03-29 20:29:09 +02:00
parent ab9c7de147
commit d2a1f9ea88

View file

@ -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;