1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-10-31 23:55:54 +00:00

cam stuff

This commit is contained in:
aap 2020-12-01 10:12:42 +01:00
parent 6dcbc8f062
commit d6fab1bc53

View file

@ -94,9 +94,9 @@ CCamera::Init(void)
#endif #endif
#ifdef PS2_MENU #ifdef PS2_MENU
if ( !TheMemoryCard.m_bWantToLoad && !FrontEndMenuManager.m_bWantToRestart ) { if ( !TheMemoryCard.m_bWantToLoad && !FrontEndMenuManager.m_bWantToRestart )
#endif #endif
{
#ifdef FIX_BUGS #ifdef FIX_BUGS
static const CCamera DummyCamera = CCamera(0.f); static const CCamera DummyCamera = CCamera(0.f);
*this = DummyCamera; *this = DummyCamera;
@ -110,9 +110,7 @@ CCamera::Init(void)
#endif #endif
m_pRwCamera = nil; m_pRwCamera = nil;
#ifdef PS2_MENU
} }
#endif
m_1rstPersonRunCloseToAWall = false; m_1rstPersonRunCloseToAWall = false;
m_fPositionAlongSpline = 0.0f; m_fPositionAlongSpline = 0.0f;
@ -719,10 +717,14 @@ CCamera::Process(void)
LODDistMultiplier = 70.0f/CDraw::GetFOV() * CDraw::GetAspectRatio()/(4.0f/3.0f); LODDistMultiplier = 70.0f/CDraw::GetFOV() * CDraw::GetAspectRatio()/(4.0f/3.0f);
else else
LODDistMultiplier = 1.0f; LODDistMultiplier = 1.0f;
// missing on PS2 #if GTA_VERSION > GTA3_PS2_160
GenerationDistMultiplier = 70.0f/CDraw::GetFOV() * fmin(CDraw::GetAspectRatio(),1.82f)/(4.0f/3.0f); #ifndef FIX_BUGS
// this seems problematic for very wide aspect ratios
// maybe just leaving it at 1.0 is the best thing to do
GenerationDistMultiplier = LODDistMultiplier;
#endif
LODDistMultiplier *= CRenderer::ms_lodDistScale; LODDistMultiplier *= CRenderer::ms_lodDistScale;
// #endif
// Keep track of speed // Keep track of speed
if(m_bJustInitalised || m_bJust_Switched){ if(m_bJustInitalised || m_bJust_Switched){