diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-29 17:19:50 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-12-02 12:21:46 +0100 |
commit | bd8b907d131ac9e5b471a0a31928849b95f5d1f0 (patch) | |
tree | ab3102ea352daf603903342baf4aa696d6cacf56 /src/control/RoadBlocks.cpp | |
parent | some nasty FIX_BUGS for SLIDE_OBJECT (diff) | |
download | re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.gz re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.bz2 re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.lz re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.xz re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.zst re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/RoadBlocks.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp index dee2cbe3..260978b3 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -97,11 +97,7 @@ CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType pCopPed->m_nRoadblockVeh->RegisterReference((CEntity**)&pCopPed->m_nRoadblockVeh); pCopPed->bCrouchWhenShooting = roadBlockType == 2 ? false : true; if (pEntityToAttack) { - if (pCopPed->m_pPointGunAt) - pCopPed->m_pPointGunAt->CleanUpOldReference(&pCopPed->m_pPointGunAt); - pCopPed->m_pPointGunAt = pEntityToAttack; - if (pEntityToAttack) - pEntityToAttack->RegisterReference(&pCopPed->m_pPointGunAt); + pCopPed->SetWeaponLockOnTarget(pEntityToAttack); pCopPed->SetAttack(pEntityToAttack); } pCopPed->m_pMyVehicle = pVehicle; |