From 4b566c26a349ea98abcce33a55a645394cc6dfec Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Tue, 12 May 2020 14:08:42 +0300 Subject: fix garages --- src/control/Garages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control/Garages.cpp') 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; } -- cgit v1.2.3