From: Gael-de-Sailly Date: Tue, 25 Oct 2016 15:12:50 +0000 (+0200) Subject: ParticleSpawner: fix offset being added twice X-Git-Tag: 0.4.15~158 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3db2f08ff95a2e1366b9b5079100b6a681f1e562;p=oweals%2Fminetest.git ParticleSpawner: fix offset being added twice --- diff --git a/src/particles.cpp b/src/particles.cpp index 2efee6ada..f20fb4083 100644 --- a/src/particles.cpp +++ b/src/particles.cpp @@ -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