1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2025-11-06 02:05:30 +01:00

ParticleSpawner: fix offset being added twice

这个提交包含在:
Gael-de-Sailly
2016-10-25 17:12:50 +02:00
提交者 Ner'zhul
父节点 a1e1323d6e
当前提交 3db2f08ff9

查看文件

@@ -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