projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e1323
)
ParticleSpawner: fix offset being added twice
author
Gael-de-Sailly
<gael.chretien@akeonet.com>
Tue, 25 Oct 2016 15:12:50 +0000
(17:12 +0200)
committer
Ner'zhul
<nerzhul@users.noreply.github.com>
Tue, 25 Oct 2016 18:39:39 +0000
(20:39 +0200)
src/particles.cpp
patch
|
blob
|
history
diff --git
a/src/particles.cpp
b/src/particles.cpp
index 2efee6adaeb2e9be78b0780460f63635c876b7bf..f20fb4083033631a48370ace89c6fc34a57be062 100644
(file)
--- 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