mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- added the out-of-bounds vertex handler to the secondary triangulator as well.
If SW does this, triangulation must not be attempted as it will inevitably fail.
This commit is contained in:
parent
db21313c96
commit
2b8a80c6ce
1 changed files with 6 additions and 0 deletions
|
@ -350,6 +350,12 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
|||
auto wallp = &wall[sline->startpoint];
|
||||
vertexes[j].p = { wallp->x * (1 / 16.), wallp->y * (1 / -16.) };
|
||||
|
||||
if (fabs(vertexes[j].p.X) > 32768.f || fabs(vertexes[j].p.Y) > 32768.f)
|
||||
{
|
||||
// If we get here there's some fuckery going around with the coordinates. Let's better abort and wait for things to realign.
|
||||
return true;
|
||||
}
|
||||
|
||||
lines[j].backsector = nullptr;
|
||||
lines[j].frontsector = sectorp;
|
||||
lines[j].linenum = j;
|
||||
|
|
Loading…
Reference in a new issue