summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Heli.cpp
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-08-09 21:54:00 +0200
committermajestic <majesticcoding@gmail.com>2020-08-10 06:42:12 +0200
commit70029752f517dfe8c8837f7e6f94e6184c14cbfe (patch)
treeb472c4a75ad4f162933bd6f4abd7106dd7adfdf8 /src/vehicles/Heli.cpp
parentCWindModifiers (diff)
parentdrunk blur done (diff)
downloadre3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.gz
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.bz2
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.lz
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.xz
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.zst
re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.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;