summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZach Charo <zach@zlau.net>2020-11-30 19:08:15 -0600
committerGitHub <noreply@github.com>2020-11-30 19:08:15 -0600
commit6eb0fd52d7f36623ca78d6717fcbd64fd3e7ecd9 (patch)
tree653ec27a524697c42c0b02b9371b50b52439d1fb /src/core
parent2c59e1c8945a5c6de6415611d4f1dbc720790d73 (diff)
Update Camera.cpp
camdist multiplier is consitently between 1 and 1.4 on 16:9 aspect ratio On ultrawide, the cam dist multiplier jumps to anywhere between 2 and 3 The preferred distance generator for car objects is the cam dist multiplier * 120. Which puts cars that it's trying to generate outside of the allowed gen/draw distance for new car objects when on ultrawide. This means no new cars can spawn. This change caps the scaling for the generation distance a bit above what it would be for 16:9 and does not affect the LOD multiplier.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index 1e1aa722..9281a20a 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -720,7 +720,7 @@ CCamera::Process(void)
else
LODDistMultiplier = 1.0f;
// missing on PS2
- GenerationDistMultiplier = LODDistMultiplier;
+ GenerationDistMultiplier = 70.0f/CDraw::GetFOV() * fmin(CDraw::GetAspectRatio(),1.82f)/(4.0f/3.0f);
LODDistMultiplier *= CRenderer::ms_lodDistScale;
//