diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-12 13:08:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 13:08:42 +0200 |
commit | 4b566c26a349ea98abcce33a55a645394cc6dfec (patch) | |
tree | 6d60cb7dd66f87eae77e8ffaf4a8b04484a42b19 /src | |
parent | Merge pull request #536 from Nick007J/miami (diff) | |
download | re3-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 '')
-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 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; } |