- started cleanup of model code.
* refactored FBoundingBox so that the game dependent members are global functions now. * changed some methods of the model renderer to take a render style parameter instead of a full actor.
This commit is contained in:
parent
b58e3172fc
commit
67a50d084a
30 changed files with 179 additions and 168 deletions
|
|
@ -875,8 +875,8 @@ void P_NewChaseDir(AActor * actor)
|
|||
while ((line = it.Next()))
|
||||
{
|
||||
if (line->backsector && // Ignore one-sided linedefs
|
||||
box.inRange(line) &&
|
||||
box.BoxOnLineSide(line) == -1)
|
||||
inRange(box, line) &&
|
||||
BoxOnLineSide(box, line) == -1)
|
||||
{
|
||||
double front = line->frontsector->floorplane.ZatPoint(actor->PosRelative(line));
|
||||
double back = line->backsector->floorplane.ZatPoint(actor->PosRelative(line));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue