summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index 4a59810d4..e962c6980 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -379,27 +379,27 @@ Particle *Particle::addEffect(const std::string &particleEffectFile,
char deathEffectConditions = 0x00;
if (XML::getBoolProperty(emitterNode, "on-floor", true))
{
- deathEffectConditions += static_cast<char>(
+ deathEffectConditions += static_cast<signed char>(
Particle::DEAD_FLOOR);
}
if (XML::getBoolProperty(emitterNode, "on-sky", true))
{
- deathEffectConditions += static_cast<char>(
+ deathEffectConditions += static_cast<signed char>(
Particle::DEAD_SKY);
}
if (XML::getBoolProperty(emitterNode, "on-other", false))
{
- deathEffectConditions += static_cast<char>(
+ deathEffectConditions += static_cast<signed char>(
Particle::DEAD_OTHER);
}
if (XML::getBoolProperty(emitterNode, "on-impact", true))
{
- deathEffectConditions += static_cast<char>(
+ deathEffectConditions += static_cast<signed char>(
Particle::DEAD_IMPACT);
}
if (XML::getBoolProperty(emitterNode, "on-timeout", true))
{
- deathEffectConditions += static_cast<char>(
+ deathEffectConditions += static_cast<signed char>(
Particle::DEAD_TIMEOUT);
}
newParticle->setDeathEffect(