From 89fd7759a39b696865ff2fb22db808a219353507 Mon Sep 17 00:00:00 2001 From: Fire-Head Date: Tue, 4 Aug 2020 16:24:59 +0300 Subject: fixes --- src/render/CutsceneShadow.cpp | 6 +++--- src/render/Shadows.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render/CutsceneShadow.cpp b/src/render/CutsceneShadow.cpp index eeaebbc5..8cb33896 100644 --- a/src/render/CutsceneShadow.cpp +++ b/src/render/CutsceneShadow.cpp @@ -242,9 +242,9 @@ CCutsceneShadow::GetShadowCamera(int32 camType) { switch ( camType ) { - case RESAMPLE: return &m_ResampleCamera; break; - case BLUR: return &m_BlurCamera; break; - case GRADIENT: return &m_GradientCamera; break; + case RESAMPLE: return &m_ResampleCamera; + case BLUR: return &m_BlurCamera; + case GRADIENT: return &m_GradientCamera; } return &m_Camera; diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index 436d0ff5..284b2be0 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -534,7 +534,7 @@ CShadows::StoreShadowForVehicle(CVehicle *pCar, VEH_SHD_TYPE type) } else if ( pCar->GetModelIndex() == MI_ANGEL ) { - fVehicleHeight = fVehicleHeight * 1.5; + fVehicleHeight = fVehicleHeight * 1.5f; size = 0.03f; } else if ( pCar->GetModelIndex() == MI_SEASPAR ) -- cgit v1.2.3