mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- delete lines in proper order when eliminating a pair.
Deleting the lower one first will delete the wrong second one.
This commit is contained in:
parent
b2545f8042
commit
572f45ca53
1 changed files with 2 additions and 2 deletions
|
@ -385,8 +385,8 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
|||
{
|
||||
// handle the simple case first, i.e. line j is the inverse of line i.
|
||||
// in this case both lines need to be deleted.
|
||||
lines.Delete(i);
|
||||
lines.Delete(j);
|
||||
lines.Delete(i);
|
||||
i--;
|
||||
goto nexti;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
|||
double pp1x = vert ? pp1.X : pp1.Y;
|
||||
double pp2x = vert ? pp2.X : pp2.Y;
|
||||
|
||||
if (pp1x > min(p1x, p2x) && pp2x < max(p1x, p2x))
|
||||
if (pp1x > min(p1x, p2x) && pp1x < max(p1x, p2x))
|
||||
{
|
||||
// pp1 is on line i.
|
||||
lines[i].v1 = lines[j].v1;
|
||||
|
|
Loading…
Reference in a new issue