- got rid of secplane_t::fA and fB. All uses could be replaced by other functions.
This commit is contained in:
parent
fc5f98a0be
commit
4e5ba49aca
4 changed files with 10 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue