- floatified line_t::bbox.
This commit is contained in:
parent
7a2c8fdc1c
commit
f41afde545
6 changed files with 38 additions and 85 deletions
|
|
@ -885,11 +885,8 @@ void P_NewChaseDir(AActor * actor)
|
|||
double deltay = 0;
|
||||
while ((line = it.Next()))
|
||||
{
|
||||
if (line->backsector && // Ignore one-sided linedefs
|
||||
box.Right() > line->bbox[BOXLEFT] &&
|
||||
box.Left() < line->bbox[BOXRIGHT] &&
|
||||
box.Top() > line->bbox[BOXBOTTOM] && // Linedef must be contacted
|
||||
box.Bottom() < line->bbox[BOXTOP] &&
|
||||
if (line->backsector && // Ignore one-sided linedefs
|
||||
box.inRange(line) &&
|
||||
box.BoxOnLineSide(line) == -1)
|
||||
{
|
||||
double front = line->frontsector->floorplane.ZatPoint(actor->PosRelative(line));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue