summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/particle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index 6e8ab14a7..b93fe376d 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -127,7 +127,7 @@ bool Particle::update()
if (mTarget && mAcceleration != 0.0f)
{
- Vector dist = mPos - mTarget->getPosition();
+ Vector dist = mPos - mTarget->mPos;
dist.x *= SIN45;
float invHypotenuse;
@@ -243,7 +243,7 @@ bool Particle::update()
{
Particle *const particle = *p;
// move particle with its parent if desired
- if (particle->doesFollow())
+ if (particle->mFollow)
particle->moveBy(change);
// update particle
@@ -269,7 +269,7 @@ void Particle::moveBy(const Vector &change)
FOR_EACH (ParticleConstIterator, p, mChildParticles)
{
Particle *const particle = *p;
- if (particle->doesFollow())
+ if (particle->mFollow)
particle->moveBy(change);
}
}