aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGael-de-Sailly <gael.chretien@akeonet.com>2016-10-25 17:12:50 +0200
committerNer'zhul <nerzhul@users.noreply.github.com>2016-10-25 20:39:39 +0200
commit3db2f08ff95a2e1366b9b5079100b6a681f1e562 (patch)
tree4550c30be289de21a07c194f5b0e7d1a4dca73b4
parenta1e1323d6e2ac2304e56b414dd37975ba7c6b05d (diff)
downloadminetest-3db2f08ff95a2e1366b9b5079100b6a681f1e562.tar.gz
minetest-3db2f08ff95a2e1366b9b5079100b6a681f1e562.tar.bz2
minetest-3db2f08ff95a2e1366b9b5079100b6a681f1e562.zip
ParticleSpawner: fix offset being added twice
-rw-r--r--src/particles.cpp3
1 files changed, 1 insertions, 2 deletions
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