- got rid of secplane_t::fA and fB. All uses could be replaced by other functions.

This commit is contained in:
Christoph Oelckers 2016-04-03 19:46:00 +02:00
commit 4e5ba49aca
4 changed files with 10 additions and 19 deletions

View file

@ -877,11 +877,11 @@ bool FTraceInfo::TraceTraverse (int ptflags)
bool FTraceInfo::CheckPlane (const secplane_t &plane)
{
double den = plane.fA() * Vec.X + plane.fB() * Vec.Y + plane.fC() * Vec.Z;
double den = plane.Normal() | Vec;
if (den != 0)
{
double num = plane.fA() * Start.X + plane.fB() * Start.Y + plane.fC() * Start.Z + plane.fD();
double num = (plane.Normal() | Start) + plane.fD();
double hitdist = -num / den;