Lines 537-542
Link Here
|
537 |
subsector_t *sub = &subsectors[line->leaf]; |
537 |
subsector_t *sub = &subsectors[line->leaf]; |
538 |
if (line->partner) |
538 |
if (line->partner) |
539 |
{ |
539 |
{ |
|
|
540 |
// Skip self-referencing subsector segs |
541 |
if (line->leaf == line->partner->leaf) |
542 |
{ |
543 |
Owner.DisplayMessage("Self-referencing subsector detected\n"); |
544 |
numportals--; |
545 |
continue; |
546 |
} |
547 |
|
540 |
// create portal |
548 |
// create portal |
541 |
if (sub->numportals == MAX_PORTALS_ON_LEAF) |
549 |
if (sub->numportals == MAX_PORTALS_ON_LEAF) |
542 |
throw GLVisError("Leaf with too many portals"); |
550 |
throw GLVisError("Leaf with too many portals"); |