diff options
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 8 |
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; } |