summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-12 14:08:42 +0300
committerGitHub <noreply@github.com>2020-05-12 14:08:42 +0300
commit4b566c26a349ea98abcce33a55a645394cc6dfec (patch)
tree6d60cb7dd66f87eae77e8ffaf4a8b04484a42b19 /src
parent30b3f34d91ea036c4d9c4573b0cd343a79fadcf9 (diff)
fix garages
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 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;
}