ParticleSpawner: fix offset being added twice
authorGael-de-Sailly <gael.chretien@akeonet.com>
Tue, 25 Oct 2016 15:12:50 +0000 (17:12 +0200)
committerNer'zhul <nerzhul@users.noreply.github.com>
Tue, 25 Oct 2016 18:39:39 +0000 (20:39 +0200)
src/particles.cpp

index 2efee6adaeb2e9be78b0780460f63635c876b7bf..f20fb4083033631a48370ace89c6fc34a57be062 100644 (file)
@@ -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