mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- adjusted FGLLinePortal to recent changes in line_t.
This commit is contained in:
parent
ee3e3e35e6
commit
7df1a8ae81
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
// 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
|
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
|
angle_t angv1, angv2; // for quick comparisons with a line or subsector
|
||||||
|
|
||||||
|
@ -207,9 +207,7 @@ struct GLLinePortal : public GLPortal
|
||||||
|
|
||||||
void CalcDelta()
|
void CalcDelta()
|
||||||
{
|
{
|
||||||
DVector2 delta = v2->fPos() - v1->fPos();
|
delta = v2->fPos() - v1->fPos();
|
||||||
dx = FLOAT2FIXED(delta.X);
|
|
||||||
dy = FLOAT2FIXED(delta.Y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
line_t *line()
|
line_t *line()
|
||||||
|
|
Loading…
Reference in a new issue