diff options
author | aap <aap@papnet.eu> | 2020-12-02 10:38:27 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-02 10:38:27 +0100 |
commit | fba657ff0c77b343ac854a5aed16385a6c77492c (patch) | |
tree | c4a125ed77e2b44366bc693dfce2654cc80a795e /src/core/Camera.cpp | |
parent | some more GTA_VERSIONs and CGame tidy-up (not much actual memory moving yet) (diff) | |
download | re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar.gz re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar.bz2 re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar.lz re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar.xz re3-fba657ff0c77b343ac854a5aed16385a6c77492c.tar.zst re3-fba657ff0c77b343ac854a5aed16385a6c77492c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Camera.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 51876c93..4baec2a4 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -713,14 +713,14 @@ CCamera::Process(void) DistanceToWater = CWaterLevel::CalcDistanceToWater(GetPosition().x, GetPosition().y); // LOD dist - if(!CCutsceneMgr::IsRunning() || CCutsceneMgr::UseLodMultiplier()) - LODDistMultiplier = 70.0f/CDraw::GetFOV() * CDraw::GetAspectRatio()/(4.0f/3.0f); - else - LODDistMultiplier = 1.0f; -#ifdef FIX_BUGS - // from VC. to high values bug out spawns - LODDistMultiplier = Min(LODDistMultiplier, 2.2f); + if(!CCutsceneMgr::IsRunning() || CCutsceneMgr::UseLodMultiplier()){ + LODDistMultiplier = 70.0f/CDraw::GetFOV(); +#ifndef FIX_BUGS + // makes no sense and gone in VC + LODDistMultiplier *= CDraw::GetAspectRatio()/(4.0f/3.0f); #endif + }else + LODDistMultiplier = 1.0f; #if GTA_VERSION > GTA3_PS2_160 GenerationDistMultiplier = LODDistMultiplier; LODDistMultiplier *= CRenderer::ms_lodDistScale; |