Skip to content

Commit 6d0dc55

Browse files
committed
Msecnode lookup now ignores polyobject lines
since they don't contribute sectors
1 parent 969928c commit 6d0dc55

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/p_map.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,6 +3149,10 @@ static bool PIT_GetSectors(line_t *ld, polyobj_t *po, void *vcontext)
31493149
bbox[BOXTOP] = pClip->bbox[BOXTOP] + link->y;
31503150
bbox[BOXBOTTOM] = pClip->bbox[BOXBOTTOM] + link->y;
31513151

3152+
// Polyobject lines don't contribute with sector information (even with portals)
3153+
if(demo_version >= 406 && Polyobj_IsLine(*ld))
3154+
return true;
3155+
31523156
if(bbox[BOXRIGHT] <= ld->bbox[BOXLEFT] || bbox[BOXLEFT] >= ld->bbox[BOXRIGHT] ||
31533157
bbox[BOXTOP] <= ld->bbox[BOXBOTTOM] || bbox[BOXBOTTOM] >= ld->bbox[BOXTOP])
31543158
return true;

0 commit comments

Comments
 (0)