summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-09 22:30:00 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-09 22:31:11 +0100
commit07f7d52f661a74e6d0c780ca53e724651e3dcc48 (patch)
treeb55b8c0d04a1544ace42f00642adfde4ad045d94 /src/effectmanager.cpp
parent6c29cfa167820635ea602b5cc31dcfeb7b04478c (diff)
downloadmana-07f7d52f661a74e6d0c780ca53e724651e3dcc48.tar.gz
mana-07f7d52f661a74e6d0c780ca53e724651e3dcc48.tar.bz2
mana-07f7d52f661a74e6d0c780ca53e724651e3dcc48.tar.xz
mana-07f7d52f661a74e6d0c780ca53e724651e3dcc48.zip
Mostly whitespace fixes
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp
index 14b932d3..8e029cf0 100644
--- a/src/effectmanager.cpp
+++ b/src/effectmanager.cpp
@@ -71,13 +71,13 @@ bool EffectManager::trigger(int id, Being* being)
{
printf("Found effect, playing it");
rValue = true;
- if((*i).GFX != "")
+ if (!(*i).GFX.empty())
{
Particle *selfFX;
selfFX = particleEngine->addEffect((*i).GFX, 0, 0);
being->controlParticle(selfFX);
}
- if((*i).SFX != "")
+ if (!(*i).SFX.empty())
sound.playSfx((*i).SFX);
break;
}
@@ -94,9 +94,9 @@ bool EffectManager::trigger(int id, int x, int y)
{
printf("Found effect, playing it");
rValue = true;
- if((*i).GFX != "")
+ if (!(*i).GFX.empty())
particleEngine->addEffect((*i).GFX, x, y);
- if((*i).SFX != "")
+ if (!(*i).SFX.empty())
sound.playSfx((*i).SFX);
break;
}