- adjusted FGLLinePortal to recent changes in line_t.

This commit is contained in:
Christoph Oelckers 2016-04-07 17:41:06 +02:00
parent ee3e3e35e6
commit 7df1a8ae81

View file

@ -176,7 +176,7 @@ struct GLLinePortal : public GLPortal
{ {
// this must be the same as at the start of line_t, so that we can pass in this structure directly to P_ClipLineToPortal. // this must be the same as at the start of line_t, so that we can pass in this structure directly to P_ClipLineToPortal.
vertex_t *v1, *v2; // vertices, from v1 to v2 vertex_t *v1, *v2; // vertices, from v1 to v2
fixed_t dx, dy; // precalculated v2 - v1 for side checking DVector2 delta; // precalculated v2 - v1 for side checking
angle_t angv1, angv2; // for quick comparisons with a line or subsector angle_t angv1, angv2; // for quick comparisons with a line or subsector
@ -207,9 +207,7 @@ struct GLLinePortal : public GLPortal
void CalcDelta() void CalcDelta()
{ {
DVector2 delta = v2->fPos() - v1->fPos(); delta = v2->fPos() - v1->fPos();
dx = FLOAT2FIXED(delta.X);
dy = FLOAT2FIXED(delta.Y);
} }
line_t *line() line_t *line()