- fixed: segplane_t::SetAtHeight initialized the plane normal's Z incorrectly.

This commit is contained in:
Christoph Oelckers 2016-04-04 12:02:53 +02:00
parent fd27c8db9e
commit fadc7d650d

View file

@ -446,18 +446,18 @@ public:
normal.X = normal.Y = 0;
if (ceiling)
{
normal.Z = negiC = 1;
normal.Z = -1;
negiC = 1;
D = height;
}
else
{
normal.Z = negiC = -1;
normal.Z = 1;
negiC = -1;
D = -height;
}
}
inline void SetAtHeight(fixed_t height, int ceiling) = delete;
bool CopyPlaneIfValid (secplane_t *dest, const secplane_t *opp) const;
};