- fixed: The cosine of 0° is 1, not 0, as the portal code assumed for linked portals.

This commit is contained in:
Christoph Oelckers 2016-08-08 13:06:29 +02:00
parent b97024b710
commit d62d345a7b
1 changed files with 2 additions and 1 deletions

View File

@ -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.;
}
}