From d62d345a7bbe3baa583a034e1e2af90760ff92f2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 8 Aug 2016 13:06:29 +0200 Subject: [PATCH] =?UTF-8?q?-=20fixed:=20The=20cosine=20of=200=C2=B0=20is?= =?UTF-8?q?=201,=20not=200,=20as=20the=20portal=20code=20assumed=20for=20l?= =?UTF-8?q?inked=20portals.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/portal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/portal.cpp b/src/portal.cpp index bf919f09a..d7dad220e 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -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.; } }