- workaround for SO interpolation potentially writing bad values to wall positions.

That messed up interpolation code really needs to be thrown away and replaced later, for now this has to suffice.
This commit is contained in:
Christoph Oelckers 2021-03-30 21:30:12 +02:00
parent f6984314b7
commit 15fb89d08f

View file

@ -231,6 +231,11 @@ void SectorGeometry::MakeVertices(unsigned int secnum, int plane)
float X = WallStartX(wal);
float Y = WallStartY(wal);
if (fabs(X) > 32768. || fabs(Y) > 32768.)
{
// If we get here there's some fuckery going around with the coordinates. Let's better abort and wait for things to realign.
return;
}
curPoly->push_back(std::make_pair(X, Y));
if (wal->point2 != sec->wallptr+i+1 && i < numvertices - 1)
{