diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-12 14:07:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 14:07:47 +0300 |
commit | 1afe36d0d0f17c3f58738510ea8c7564b7ff0a2c (patch) | |
tree | af6d2f59966c0cea239d0212451b8f2f46d8e3a8 /src | |
parent | fab453efdeb9acc304c7c84d3ebc9fed0629fa47 (diff) |
fix garages
Diffstat (limited to 'src')
-rw-r--r-- | src/control/Garages.cpp | 2 |
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; } |