diff options
author | aap <aap@papnet.eu> | 2020-05-12 16:27:26 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-12 16:27:39 +0200 |
commit | 40829b52422cfcd031961fabf60ad99b3ae69ccc (patch) | |
tree | 73cb776ada029a62cdc026e35f3fdbcc9c738e8f /src/core/Cam.cpp | |
parent | fix garages (diff) | |
download | re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.gz re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.bz2 re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.lz re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.xz re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.zst re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Cam.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 3357c5c0..30336423 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -5101,7 +5101,7 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, CColPoint foundCol; CEntity* foundEnt; CWorld::pIgnoreEntity = CamTargetEntity; - if (CWorld::ProcessLineOfSight(TargetCoors, Source, foundCol, foundEnt, true, dontCollideWithCars < 0.1f, false, true, false, true, false)) { + if (CWorld::ProcessLineOfSight(TargetCoors, Source, foundCol, foundEnt, true, dontCollideWithCars < 0.1f, false, false, false, true, false)) { float obstacleTargetDist = (TargetCoors - foundCol.point).Magnitude(); float obstacleCamDist = newDistance - obstacleTargetDist; if (!foundEnt->IsPed() || obstacleCamDist <= 1.0f) { @@ -5110,7 +5110,7 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, RwCameraSetNearClipPlane(Scene.camera, Max(0.05f, obstacleTargetDist - 0.3f)); } } else { - if (!CWorld::ProcessLineOfSight(foundCol.point, Source, foundCol, foundEnt, true, dontCollideWithCars < 0.1f, false, true, false, true, false)) { + if (!CWorld::ProcessLineOfSight(foundCol.point, Source, foundCol, foundEnt, true, dontCollideWithCars < 0.1f, false, false, false, true, false)) { float lessClip = obstacleCamDist - 0.35f; if (lessClip <= DEFAULT_NEAR) RwCameraSetNearClipPlane(Scene.camera, lessClip); |