summaryrefslogtreecommitdiffstats
path: root/src/render/Particle.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-30 00:47:33 +0200
committeraap <aap@papnet.eu>2019-05-30 00:47:33 +0200
commit0a36d49d2cd4346dc99a52155e2599917c1e6a42 (patch)
tree9d07fa357fca32b4dfa56b6f52584fdf2c349a30 /src/render/Particle.cpp
parentMerge pull request #2 from Fire-Head/master (diff)
downloadre3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.gz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.bz2
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.lz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.xz
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.tar.zst
re3-0a36d49d2cd4346dc99a52155e2599917c1e6a42.zip
Diffstat (limited to 'src/render/Particle.cpp')
-rw-r--r--src/render/Particle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/Particle.cpp b/src/render/Particle.cpp
index aade3578..18ea4c6c 100644
--- a/src/render/Particle.cpp
+++ b/src/render/Particle.cpp
@@ -1229,7 +1229,9 @@ void CParticle::Update()
moveStep.z = point.point.z;
if ( psystem->m_Type == PARTICLE_DEBRIS2 )
{
- particle->m_vecVelocity *= CVector(0.8f, 0.8f, -0.4f);
+ particle->m_vecVelocity.x *= 0.8f;
+ particle->m_vecVelocity.y *= 0.8f;
+ particle->m_vecVelocity.z *= -0.4f;
if ( particle->m_vecVelocity.z < 0.005f )
particle->m_vecVelocity.z = 0.0f;
}