summaryrefslogtreecommitdiffstats
path: root/src/core/Fire.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2020-03-29 17:39:47 +0200
committerGitHub <noreply@github.com>2020-03-29 17:39:47 +0200
commita0b077574e95e49ad845a6c9dc1af906b17277f9 (patch)
treede9f8dbd0e3c06ffbb95b13c0637dfc3db3873c1 /src/core/Fire.cpp
parentstyle & cosmetic fixes (diff)
parentMerge pull request #367 from Sergeanur/wrappers_cleanup (diff)
downloadre3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.gz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.bz2
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.lz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.xz
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.tar.zst
re3-a0b077574e95e49ad845a6c9dc1af906b17277f9.zip
Diffstat (limited to 'src/core/Fire.cpp')
-rw-r--r--src/core/Fire.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp
index c98c808d..cfa849e9 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -113,7 +113,7 @@ CFire::ProcessFire(void)
CVector(0.0f, 0.0f, CGeneral::GetRandomNumberInRange(0.0125f, 0.1f) * m_fStrength),
0, m_fStrength, 0, 0, 0, 0);
- rand(); rand(); rand(); /* unsure why these three rands are called */
+ CGeneral::GetRandomNumber(); CGeneral::GetRandomNumber(); CGeneral::GetRandomNumber(); /* unsure why these three rands are called */
CParticle::AddParticle(PARTICLE_CARFLAME_SMOKE, firePos,
CVector(0.0f, 0.0f, 0.0f), 0, 0.0f, 0, 0, 0, 0);
@@ -129,8 +129,10 @@ CFire::ProcessFire(void)
if (!m_pEntity) {
CShadows::StoreStaticShadow((uint32)this, SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &lightpos,
- 7.0f, 0.0f, 0.0f, -7.0f, 0, nRandNumber / 2, nRandNumber / 2,
- 0, 10.0f, 1.0f, 40.0f, 0, 0.0f);
+ 7.0f, 0.0f, 0.0f, -7.0f,
+ 255, // this is 0 on PC which results in no shadow
+ nRandNumber / 2, nRandNumber / 2, 0,
+ 10.0f, 1.0f, 40.0f, 0, 0.0f);
}
fGreen = nRandNumber / 128;
fRed = nRandNumber / 128;