From ad13a55f0d40274ecae0930ca21db51ff7bac2a4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 5 Apr 2016 14:03:08 +0200 Subject: [PATCH] - floatified line_t::dx and dy. --- src/r_defs.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/r_defs.h b/src/r_defs.h index d6c4b6221..2719ff7ee 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -1278,7 +1278,7 @@ struct line_t { vertex_t *v1, *v2; // vertices, from v1 to v2 private: - fixed_t dx, dy; // precalculated v2 - v1 for side checking + DVector2 delta; // precalculated v2 - v1 for side checking public: DWORD flags; DWORD activation; // activation type @@ -1294,19 +1294,12 @@ public: DVector2 Delta() const { - return{ FIXED2DBL(dx), FIXED2DBL(dy) }; - } - - void setDelta(fixed_t x, fixed_t y) - { - dx = x; - dy = y; + return delta; } void setDelta(double x, double y) { - dx = FLOAT2FIXED(x); - dy = FLOAT2FIXED(y); + delta = { x, y }; } void setAlpha(double a)