diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-10 01:43:55 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | 0f6583560dfec7c2bd6092f139cfef4a39fd7583 (patch) | |
tree | 022c378103008a35c5f0679a96bea86916e5b668 /src/control/RoadBlocks.cpp | |
parent | Use some GetMatrix/SetMatrix logic based on SA + CutsceneHead fix (diff) | |
download | re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar.gz re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar.bz2 re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar.lz re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar.xz re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.tar.zst re3-0f6583560dfec7c2bd6092f139cfef4a39fd7583.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/RoadBlocks.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp index 16627b17..c22bebaa 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -80,9 +80,7 @@ CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType pCopPed->SetCurrentWeapon(WEAPONTYPE_COLT45); CPedPlacement::FindZCoorForPed(&posForZ); pCopPed->SetPosition(posForZ); - CVector vecSavedPos = pCopPed->GetPosition(); - pCopPed->GetMatrix().SetRotate(0.0f, 0.0f, -HALFPI); - pCopPed->GetMatrix().GetPosition() += vecSavedPos; + pCopPed->SetOrientation(0.0f, 0.0f, -HALFPI); pCopPed->m_bIsDisabledCop = true; pCopPed->SetIdle(); pCopPed->bKindaStayInSamePlace = true; |