summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-12 13:08:42 +0200
committerGitHub <noreply@github.com>2020-05-12 13:08:42 +0200
commit4b566c26a349ea98abcce33a55a645394cc6dfec (patch)
tree6d60cb7dd66f87eae77e8ffaf4a8b04484a42b19 /src/control
parentMerge pull request #536 from Nick007J/miami (diff)
downloadre3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar.gz
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar.bz2
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar.lz
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar.xz
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.tar.zst
re3-4b566c26a349ea98abcce33a55a645394cc6dfec.zip
Diffstat (limited to 'src/control')
-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 83b10d0b..55095027 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1423,7 +1423,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;
}