mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +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
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue