summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-07 23:53:25 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-07 23:53:25 +0200
commit5a09eeea27c50403425015db002cbfb7b76ce826 (patch)
tree1bbff0ce2828d1b2ed0e96f5a570dfb83b028416 /src
parentfix (diff)
downloadre3-5a09eeea27c50403425015db002cbfb7b76ce826.tar
re3-5a09eeea27c50403425015db002cbfb7b76ce826.tar.gz
re3-5a09eeea27c50403425015db002cbfb7b76ce826.tar.bz2
re3-5a09eeea27c50403425015db002cbfb7b76ce826.tar.lz
re3-5a09eeea27c50403425015db002cbfb7b76ce826.tar.xz
re3-5a09eeea27c50403425015db002cbfb7b76ce826.tar.zst
re3-5a09eeea27c50403425015db002cbfb7b76ce826.zip
Diffstat (limited to 'src')
-rw-r--r--src/vehicles/CarGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index 574f2854..2a048881 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -210,7 +210,7 @@ bool CCarGenerator::CheckIfWithinRangeOfAnyPlayer()
float farclip = 110.0f * TheCamera.GenerationDistMultiplier;
float nearclip = farclip - 20.0f;
bool canBeRemoved = (m_nModelIndex > 0 && CModelInfo::IsBoatModel(m_nModelIndex) && 165.0f * TheCamera.GenerationDistMultiplier > distance &&
- TheCamera.IsPointVisible(m_vecPos, &TheCamera.GetCameraMatrix())); // TODO(MIAMI) COcclision::IsPositionOccluded(m_vecPos, 0.0f)
+ TheCamera.IsSphereVisible(m_vecPos, 0.0f)); // TODO(MIAMI) COcclision::IsPositionOccluded(m_vecPos, 0.0f)
if (distance >= farclip || canBeRemoved){
if (m_bIsBlocking)
m_bIsBlocking = false;