mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- do not use the precalculated coordinates for non-linked portals because they are not static.
This commit is contained in:
parent
e9e30a6431
commit
ef9f3da31d
1 changed files with 17 additions and 4 deletions
|
@ -192,10 +192,23 @@ struct GLLinePortal : public GLPortal
|
||||||
|
|
||||||
GLLinePortal(FGLLinePortal *line)
|
GLLinePortal(FGLLinePortal *line)
|
||||||
{
|
{
|
||||||
v1 = line->v1;
|
if (line->reference->mType != PORTT_LINKED)
|
||||||
v2 = line->v2;
|
{
|
||||||
dx = line->dx;
|
// For non-linked portals we must check the actual linedef.
|
||||||
dy = line->dy;
|
line_t *lline = line->reference->mDestination;
|
||||||
|
v1 = lline->v1;
|
||||||
|
v2 = lline->v2;
|
||||||
|
dx = lline->dx;
|
||||||
|
dy = lline->dy;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// For linked portals we can check the merged span.
|
||||||
|
v1 = line->v1;
|
||||||
|
v2 = line->v2;
|
||||||
|
dx = line->dx;
|
||||||
|
dy = line->dy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
line_t *line()
|
line_t *line()
|
||||||
|
|
Loading…
Reference in a new issue