summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-01 13:00:16 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-01 13:00:16 +0200
commit2b99f2634b7c75401cf1305929530467595919ca (patch)
tree1a4203b9e9b4c709686f82f4681364ddce217907 /src/control/CarCtrl.cpp
parentmove debug script stuff to a separate file (diff)
parentFix radio scroll when player controls disabled (diff)
downloadre3-2b99f2634b7c75401cf1305929530467595919ca.tar
re3-2b99f2634b7c75401cf1305929530467595919ca.tar.gz
re3-2b99f2634b7c75401cf1305929530467595919ca.tar.bz2
re3-2b99f2634b7c75401cf1305929530467595919ca.tar.lz
re3-2b99f2634b7c75401cf1305929530467595919ca.tar.xz
re3-2b99f2634b7c75401cf1305929530467595919ca.tar.zst
re3-2b99f2634b7c75401cf1305929530467595919ca.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-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)