From a47c58162575187e30ab9610436bb608a89393de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 23:53:00 +0300 Subject: Remove default paramater from particle. --- src/being/being.cpp | 4 +++- src/particle/particle.h | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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. -- cgit v1.2.3-70-g09d2