aboutsummaryrefslogtreecommitdiff
path: root/src/client/particles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/particles.cpp')
-rw-r--r--src/client/particles.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/particles.cpp b/src/client/particles.cpp
index 85baee7cd..99723d8d6 100644
--- a/src/client/particles.cpp
+++ b/src/client/particles.cpp
@@ -217,9 +217,10 @@ void Particle::step(float dtime)
}
m_pos = p_pos / BS;
} else {
- // apply acceleration
+ // apply velocity and acceleration to position
+ m_pos += (m_velocity + m_acceleration * 0.5f * dtime) * dtime;
+ // apply acceleration to velocity
m_velocity += m_acceleration * dtime;
- m_pos += m_velocity * dtime;
}
if (m_animation.type != TAT_NONE) {