summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 00:27:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 00:32:49 +0300
commit2ed0917b4ee942ff55639500f846ae9cb4f48b90 (patch)
tree431158e61d703a747115088e1b084651c923e0dd /src/particle.cpp
parent875ece90ff94c4cf295b53c8bb37d9238ece38e9 (diff)
downloadmv-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.gz
mv-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.bz2
mv-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.xz
mv-2ed0917b4ee942ff55639500f846ae9cb4f48b90.zip
Fix some signed/unsigned chars issues.
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(