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