diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-31 19:07:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 19:07:29 +0200 |
commit | 232b5a04bad3ff2fc3a054b790918042082c7beb (patch) | |
tree | f7105f1270ef1c86b9f0160d604ca23745f734de /src/control/CarCtrl.cpp | |
parent | Merge pull request #1248 from davicr/radar-cutscene-bugfix (diff) | |
parent | Make cars and peds to not despawn when you look away (diff) | |
download | re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar.gz re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar.bz2 re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar.lz re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar.xz re3-232b5a04bad3ff2fc3a054b790918042082c7beb.tar.zst re3-232b5a04bad3ff2fc3a054b790918042082c7beb.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 35580053..37312b89 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -731,6 +731,7 @@ CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle) } float distanceToPlayer = (pVehicle->GetPosition() - vecPlayerPos).Magnitude2D(); float threshold = 50.0f; +#ifndef EXTENDED_OFFSCREEN_DESPAWN_RANGE if (pVehicle->GetIsOnScreen() || TheCamera.Cams[TheCamera.ActiveCam].LookingLeft || TheCamera.Cams[TheCamera.ActiveCam].LookingRight || @@ -741,7 +742,9 @@ CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle) pVehicle->GetModelIndex() == MI_FIRETRUCK || pVehicle->bIsLawEnforcer || pVehicle->bIsCarParkVehicle - ){ + ) +#endif + { threshold = 130.0f * TheCamera.GenerationDistMultiplier; } if (pVehicle->bExtendedRange) |