From 7df1a8ae816f7ce5944d8120088f2e8698c02477 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 7 Apr 2016 17:41:06 +0200 Subject: [PATCH] - adjusted FGLLinePortal to recent changes in line_t. --- src/gl/scene/gl_portal.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gl/scene/gl_portal.h b/src/gl/scene/gl_portal.h index 43890bdece..47e8dcedbe 100644 --- a/src/gl/scene/gl_portal.h +++ b/src/gl/scene/gl_portal.h @@ -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. 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 @@ -207,9 +207,7 @@ struct GLLinePortal : public GLPortal void CalcDelta() { - DVector2 delta = v2->fPos() - v1->fPos(); - dx = FLOAT2FIXED(delta.X); - dy = FLOAT2FIXED(delta.Y); + delta = v2->fPos() - v1->fPos(); } line_t *line()