mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-28 14:42:23 +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.
|
||||
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
|
||||
|
||||
|
@ -207,9 +207,7 @@ struct GLLinePortal : public GLPortal
|
|||
|
||||
void CalcDelta()
|
||||
{
|
||||
DVector2 delta = v2->fPos() - v1->fPos();
|
||||
dx = FLOAT2FIXED(delta.X);
|
||||
dy = FLOAT2FIXED(delta.Y);
|
||||
delta = v2->fPos() - v1->fPos();
|
||||
}
|
||||
|
||||
line_t *line()
|
||||
|
|
Loading…
Reference in a new issue