mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
ParticleSpawner: fix offset being added twice
This commit is contained in:
@@ -274,8 +274,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
|
|||||||
// particle if it is attached to an unloaded
|
// particle if it is attached to an unloaded
|
||||||
// object.
|
// object.
|
||||||
if (!unloaded) {
|
if (!unloaded) {
|
||||||
v3f pos = random_v3f(m_minpos, m_maxpos)
|
v3f pos = random_v3f(m_minpos, m_maxpos);
|
||||||
+ attached_offset;
|
|
||||||
v3f vel = random_v3f(m_minvel, m_maxvel);
|
v3f vel = random_v3f(m_minvel, m_maxvel);
|
||||||
v3f acc = random_v3f(m_minacc, m_maxacc);
|
v3f acc = random_v3f(m_minacc, m_maxacc);
|
||||||
// Make relative to offest
|
// Make relative to offest
|
||||||
|
Reference in New Issue
Block a user