From ee0e11ec941fd0847cd24464d960605147a20c61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 23:32:12 +0300 Subject: Remove default parameters from particleengine. --- src/particle/particle.cpp | 2 +- src/particle/particleengine.h | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'src/particle') 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) -- cgit v1.2.3-70-g09d2