mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- floatified line_t::dx and dy.
This commit is contained in:
parent
f606ba315f
commit
ad13a55f0d
1 changed files with 3 additions and 10 deletions
13
src/r_defs.h
13
src/r_defs.h
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue