1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 14:30:00 +00:00

Merge pull request #380 from Nick007J/master

Shoreside garage fix
This commit is contained in:
Nikolay Korolev 2020-04-05 12:46:14 +03:00 committed by GitHub
commit 35a2cc29f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1464,8 +1464,9 @@ void CGarage::UpdateDoorsHeight()
void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition) void CGarage::BuildRotatedDoorMatrix(CEntity * pDoor, float fPosition)
{ {
float fAngle = -fPosition * HALFPI; float fAngle = -fPosition * HALFPI;
CVector r(-Sin(fAngle) * pDoor->GetForward().x, Sin(fAngle) * pDoor->GetForward().y, Cos(fAngle) * pDoor->GetForward().z); CVector up(-Sin(fAngle) * pDoor->GetForward().y, Sin(fAngle) * pDoor->GetForward().z, Cos(fAngle));
pDoor->GetRight() = CrossProduct(r, pDoor->GetForward()); pDoor->GetRight() = CrossProduct(up, pDoor->GetForward());
pDoor->GetUp() = up;
} }
void CGarage::UpdateCrusherAngle() void CGarage::UpdateCrusherAngle()