summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 23:53:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 23:53:00 +0300
commita47c58162575187e30ab9610436bb608a89393de (patch)
tree4be448b63faadc5503d7e1721516770ecbc5abdb /src
parentcdfa51afa1adc0d35055c07f7c6c0c9d42649bea (diff)
downloadmanaverse-a47c58162575187e30ab9610436bb608a89393de.tar.gz
manaverse-a47c58162575187e30ab9610436bb608a89393de.tar.bz2
manaverse-a47c58162575187e30ab9610436bb608a89393de.tar.xz
manaverse-a47c58162575187e30ab9610436bb608a89393de.zip
Remove default paramater from particle.
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.