summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp4
-rw-r--r--src/particle/particle.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index ce89a59bd..aebfc7169 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1369,10 +1369,12 @@ void Being::fireMissile(Being *restrict const victim,
return;
}
+ // +++ add z particle position?
Particle *restrict const missileParticle = target->addEffect(
missile.particle,
mPixelX,
- mPixelY);
+ mPixelY,
+ 0);
target->moveBy(Vector(0.0F, 0.0F, missile.z));
target->setLifetime(missile.lifeTime);
diff --git a/src/particle/particle.h b/src/particle/particle.h
index 7004af0e6..4ec3b29c2 100644
--- a/src/particle/particle.h
+++ b/src/particle/particle.h
@@ -91,8 +91,9 @@ class Particle notfinal : public Actor
* particleEffectFile.
*/
Particle *addEffect(const std::string &restrict particleEffectFile,
- const int pixelX, const int pixelY,
- const int rotation = 0) restrict2;
+ const int pixelX,
+ const int pixelY,
+ const int rotation) restrict2;
/**
* Adds an emitter to the particle.