Line sweep polyobject sides

Gremlin III vanquished for Balloon Park elephants.
This commit is contained in:
James R 2024-05-03 00:57:05 -07:00 committed by NepDisk
parent 5cb20f5480
commit 4a2b18b981
2 changed files with 6 additions and 2 deletions

View file

@ -1879,6 +1879,8 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y, TryMoveResult_t *re
}
}
P_ClearTestLines();
// The bounding box is extended by MAXRADIUS
// because mobj_ts are grouped into mapblocks
// based on their origin point, and can overlap
@ -2008,8 +2010,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y, TryMoveResult_t *re
validcount++;
P_ClearTestLines();
// check lines
for (bx = xl; bx <= xh; bx++)
{

View file

@ -200,6 +200,10 @@ boolean P_BBoxInsidePolyobj(polyobj_t *po, fixed_t *bbox)
{
if (P_BoxOnLineSide(bbox, po->lines[i]) == 0)
return false;
if (tm.sweep)
{
P_TestLine(po->lines[i]);
}
}
return true;