- floatified line_t::dx and dy.

This commit is contained in:
Christoph Oelckers 2016-04-05 14:03:08 +02:00
parent f606ba315f
commit ad13a55f0d

View file

@ -1278,7 +1278,7 @@ struct line_t
{ {
vertex_t *v1, *v2; // vertices, from v1 to v2 vertex_t *v1, *v2; // vertices, from v1 to v2
private: private:
fixed_t dx, dy; // precalculated v2 - v1 for side checking DVector2 delta; // precalculated v2 - v1 for side checking
public: public:
DWORD flags; DWORD flags;
DWORD activation; // activation type DWORD activation; // activation type
@ -1294,19 +1294,12 @@ public:
DVector2 Delta() const DVector2 Delta() const
{ {
return{ FIXED2DBL(dx), FIXED2DBL(dy) }; return delta;
}
void setDelta(fixed_t x, fixed_t y)
{
dx = x;
dy = y;
} }
void setDelta(double x, double y) void setDelta(double x, double y)
{ {
dx = FLOAT2FIXED(x); delta = { x, y };
dy = FLOAT2FIXED(y);
} }
void setAlpha(double a) void setAlpha(double a)