mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
- fixed: The cosine of 0° is 1, not 0, as the portal code assumed for linked portals.
This commit is contained in:
parent
b97024b710
commit
d62d345a7b
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ static void SetRotation(FLinePortal *port)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Linked portals have no angular difference.
|
// Linked portals have no angular difference.
|
||||||
port->mSinRot = port->mCosRot = 0.;
|
port->mSinRot = 0.;
|
||||||
|
port->mCosRot = 1.;
|
||||||
port->mAngleDiff = 0.;
|
port->mAngleDiff = 0.;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue