summaryrefslogtreecommitdiffstats
path: root/src/weapons/Explosion.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-09 15:15:30 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-09 15:15:30 +0200
commita5c71516563dbdb9513b7aa2dd109f01c0e9cff3 (patch)
tree408f106bee227a1b942798f2e6bd417ca11a343a /src/weapons/Explosion.cpp
parentUpdate README.md (diff)
downloadre3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar.gz
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar.bz2
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar.lz
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar.xz
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.tar.zst
re3-a5c71516563dbdb9513b7aa2dd109f01c0e9cff3.zip
Diffstat (limited to 'src/weapons/Explosion.cpp')
-rw-r--r--src/weapons/Explosion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/weapons/Explosion.cpp b/src/weapons/Explosion.cpp
index 03fcb7c4..3d00052a 100644
--- a/src/weapons/Explosion.cpp
+++ b/src/weapons/Explosion.cpp
@@ -96,7 +96,12 @@ CExplosion::AddExplosion(CEntity *explodingEntity, CEntity *culprit, eExplosionT
const RwRGBA color = { 160, 160, 160, 255 };
pPosn = pos;
pPosn.z += 5.0f;
+#ifdef FIX_BUGS
+ CShadows::AddPermanentShadow(SHADOWTEX_CAR, gpShadowHeliTex, &pPosn, 8.0f, 0.0f, 0.0f, -8.0f, 200, 0, 0, 0, 10.0f, 30000, 1.0f);
+#else
+ // last two arguments are swapped resulting in no shadow
CShadows::AddPermanentShadow(SHADOWTEX_CAR, gpShadowHeliTex, &pPosn, 8.0f, 0.0f, 0.0f, -8.0f, 200, 0, 0, 0, 10.0f, 1, 30000.0f);
+#endif
int n = 0;
while (gaExplosion[n].m_nIteration != 0 && n < ARRAY_SIZE(gaExplosion))