summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-12 13:07:47 +0200
committerGitHub <noreply@github.com>2020-05-12 13:07:47 +0200
commit1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c (patch)
treeaf6d2f59966c0cea239d0212451b8f2f46d8e3a8 /src
parentfixed bug in cutscene head (diff)
downloadre3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar.gz
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar.bz2
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar.lz
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar.xz
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.tar.zst
re3-1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Garages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index b6786598..a5e16c6b 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1471,7 +1471,7 @@ void CGarage::UpdateDoorsHeight()
void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition)
{
float fAngle = -fPosition * HALFPI;
- CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().z, Cos(fAngle));
+ CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().x, Cos(fAngle));
pDoor->GetRight() = CrossProduct(up, pDoor->GetForward());
pDoor->GetUp() = up;
}