diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:31:39 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:31:39 +0200 |
commit | 20ab7d1739f8678198c3c8883a20486f3adf1b0c (patch) | |
tree | c53038d810b744538f21a975ca8dc0f5667c4785 /src/core/Cam.cpp | |
parent | Fix attractor even more (diff) | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar.gz re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar.bz2 re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar.lz re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar.xz re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.tar.zst re3-20ab7d1739f8678198c3c8883a20486f3adf1b0c.zip |
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r-- | src/core/Cam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index b996e77f..7af652ad 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4247,7 +4247,7 @@ CCam::GetLookFromLampPostPos(CEntity *Target, CPed *Cop, CVector &TargetCoors, C CWorld::FindObjectsInRange(TargetCoors, 30.0f, true, &NumObjects, 15, Objects, false, false, false, true, true); float NearestDist = 10000.0f; for(i = 0; i < NumObjects; i++){ - if(Objects[i]->IsStatic() && Objects[i]->GetUp().z > 0.9f && IsLampPost(Objects[i]->GetModelIndex())){ + if(Objects[i]->GetIsStatic() && Objects[i]->GetUp().z > 0.9f && IsLampPost(Objects[i]->GetModelIndex())){ float Dist = (Objects[i]->GetPosition() - TargetCoors).Magnitude2D(); if(Abs(ARRESTCAM_LAMP_BEST_DIST - Dist) < NearestDist){ CVector TestStart = Objects[i]->GetColModel()->boundingBox.max; |