- floatified line_t::bbox.

This commit is contained in:
Christoph Oelckers 2016-03-31 01:22:49 +02:00
commit f41afde545
6 changed files with 38 additions and 85 deletions

View file

@ -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));