summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Heli.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-07 10:18:35 +0200
committerGitHub <noreply@github.com>2020-08-07 10:18:35 +0200
commit40185161b83091e79455acf6fe82f070e26c6662 (patch)
tree87ae90e9dc46c746d0a4819286ce1b965c3f91fa /src/vehicles/Heli.cpp
parentMerge pull request #668 from majesticCoding/miami (diff)
parentUpdate CutsceneShadow.h (diff)
downloadre3-40185161b83091e79455acf6fe82f070e26c6662.tar
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.gz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.bz2
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.lz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.xz
re3-40185161b83091e79455acf6fe82f070e26c6662.tar.zst
re3-40185161b83091e79455acf6fe82f070e26c6662.zip
Diffstat (limited to 'src/vehicles/Heli.cpp')
-rw-r--r--src/vehicles/Heli.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicles/Heli.cpp b/src/vehicles/Heli.cpp
index 00bb0023..a770f83d 100644
--- a/src/vehicles/Heli.cpp
+++ b/src/vehicles/Heli.cpp
@@ -557,6 +557,7 @@ CHeli::PreRender(void)
{
float radius = (GetPosition().z - FindPlayerCoors().z - 10.0f - 1.0f) * 0.3f + 10.0f;
HeliDustGenerate(this, radius, FindPlayerCoors().z, Max(16.0f - 4.0f*CTimer::GetTimeStep(), 2.0f));
+ CShadows::StoreShadowForVehicle(this, VEH_SHD_TYPE_HELI);
}
void
@@ -592,7 +593,7 @@ CHeli::PreRenderAlways(void)
CShadows::StoreShadowToBeRendered(SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &shadowPos,
6.0f, 0.0f, 0.0f, -6.0f,
80*m_fSearchLightIntensity, 80*m_fSearchLightIntensity, 80*m_fSearchLightIntensity, 80*m_fSearchLightIntensity,
- 50.0f, true, 1.0f);
+ 50.0f, true, 1.0f, nil, false);
CVector front = GetMatrix() * CVector(0.0f, 7.0f, 0.0f);
CVector toPlayer = FindPlayerCoors() - front;