- fixed plane access in GL code.
This commit is contained in:
parent
7486e24cd9
commit
f6b33acbb1
2 changed files with 10 additions and 13 deletions
|
|
@ -227,16 +227,9 @@ void Plane::Init(float a, float b, float c, float d)
|
|||
|
||||
void Plane::Set(secplane_t &plane)
|
||||
{
|
||||
float a, b, c, d;
|
||||
|
||||
a = (float)plane.fA();
|
||||
b = (float)plane.fB();
|
||||
c = (float)plane.fC();
|
||||
d = (float)plane.fD();
|
||||
|
||||
m_normal.Set(a, c, b);
|
||||
m_normal.Set(plane.Normal().X, plane.Normal().Z, plane.Normal().Y);
|
||||
//m_normal.Normalize(); the vector is already normalized
|
||||
m_d = d;
|
||||
m_d = plane.fD();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue