summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-23 20:07:44 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-26 03:43:26 +0200
commitf73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c (patch)
tree15f6a5a19e8c65fd0008ff0ff4d551f5cd6deeae /src/control
parentFix (diff)
downloadre3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar.gz
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar.bz2
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar.lz
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar.xz
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.tar.zst
re3-f73dfa12e6c41d1dcd16a4f5a220cc91c346ba7c.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp5
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)