summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 23:32:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 23:32:12 +0300
commitee0e11ec941fd0847cd24464d960605147a20c61 (patch)
treef0d7e3cb89bcba7828816c38b5ebdab608c0a9ed /src/particle
parentc87612abbb3c926a57e051ee5940791c6882037e (diff)
downloadmv-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.cpp2
-rw-r--r--src/particle/particleengine.h15
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)