mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +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