mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 22:42:29 +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
|
||||
{
|
||||
// Linked portals have no angular difference.
|
||||
port->mSinRot = port->mCosRot = 0.;
|
||||
port->mSinRot = 0.;
|
||||
port->mCosRot = 1.;
|
||||
port->mAngleDiff = 0.;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue