diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 23:32:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 23:32:12 +0300 |
commit | ee0e11ec941fd0847cd24464d960605147a20c61 (patch) | |
tree | f0d7e3cb89bcba7828816c38b5ebdab608c0a9ed /src/particle | |
parent | c87612abbb3c926a57e051ee5940791c6882037e (diff) | |
download | mv-ee0e11ec941fd0847cd24464d960605147a20c61.tar.gz mv-ee0e11ec941fd0847cd24464d960605147a20c61.tar.bz2 mv-ee0e11ec941fd0847cd24464d960605147a20c61.tar.xz mv-ee0e11ec941fd0847cd24464d960605147a20c61.zip |
Remove default parameters from particleengine.
Diffstat (limited to 'src/particle')
-rw-r--r-- | src/particle/particle.cpp | 2 | ||||
-rw-r--r-- | src/particle/particleengine.h | 15 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index 40b1b7a5a..26471d85a 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -242,7 +242,7 @@ void Particle::updateSelf() restrict2 > 0x00 && !mDeathEffect.empty()) { Particle *restrict const deathEffect = particleEngine->addEffect( - mDeathEffect, 0, 0); + mDeathEffect, 0, 0, 0); if (deathEffect != nullptr) deathEffect->moveBy(mPos); } diff --git a/src/particle/particleengine.h b/src/particle/particleengine.h index 19a9c4e9f..87c536855 100644 --- a/src/particle/particleengine.h +++ b/src/particle/particleengine.h @@ -92,27 +92,30 @@ class ParticleEngine final * 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; /** * Creates a standalone text particle. */ Particle *addTextSplashEffect(const std::string &restrict text, - const int x, const int y, + const int x, + const int y, const Color *restrict const color, Font *restrict const font, - const bool outline = false) + const bool outline) restrict2 A_NONNULL(5, 6); /** * Creates a standalone text particle. */ Particle *addTextRiseFadeOutEffect(const std::string &restrict text, - const int x, const int y, + const int x, + const int y, const Color *restrict const color, Font *restrict const font, - const bool outline = false) + const bool outline) restrict2 A_NONNULL(5, 6); void setMap(Map *const map) |