Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ParticleSpawner: fix offset being added twice
  • Loading branch information
Gael-de-Sailly authored and nerzhul committed Oct 25, 2016
1 parent a1e1323 commit 3db2f08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/particles.cpp
Expand Up @@ -274,8 +274,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
// particle if it is attached to an unloaded
// object.
if (!unloaded) {
v3f pos = random_v3f(m_minpos, m_maxpos)
+ attached_offset;
v3f pos = random_v3f(m_minpos, m_maxpos);
v3f vel = random_v3f(m_minvel, m_maxvel);
v3f acc = random_v3f(m_minacc, m_maxacc);
// Make relative to offest
Expand Down

0 comments on commit 3db2f08

Please sign in to comment.