- replaced all direct access to sector plane coefficients with wrapper functions.

This commit is contained in:
Christoph Oelckers 2016-03-29 12:40:41 +02:00
commit 25f5e8449a
30 changed files with 247 additions and 246 deletions

View file

@ -218,9 +218,9 @@ void P_LineOpening (FLineOpening &open, AActor *actor, const line_t *linedef, co
}
else
{
if ((front->floorplane.a | front->floorplane.b) == 0)
if (!front->floorplane.isSlope())
usefront = true;
else if ((back->floorplane.a | front->floorplane.b) == 0)
else if (!back->floorplane.isSlope())
usefront = false;
else
usefront = !P_PointOnLineSide (*ref, linedef);