mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- 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:
parent
f6984314b7
commit
15fb89d08f
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue