diff options
author | David Athay <ko2fan@gmail.com> | 2009-02-11 09:30:26 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-02-11 09:30:26 +0000 |
commit | 91111ca5d13072ea3b834e23835df9c077329e39 (patch) | |
tree | f0af8dd08b766164835cf9b5412a9aa3267dbad7 /src/statuseffect.cpp | |
parent | 8046bb2626b30fecdcea54eb0aa3349cdb7d277b (diff) | |
parent | 63ac001daa7dfc0735dfefd9c2829c8786b4edaf (diff) | |
download | mana-client-91111ca5d13072ea3b834e23835df9c077329e39.tar.gz mana-client-91111ca5d13072ea3b834e23835df9c077329e39.tar.bz2 mana-client-91111ca5d13072ea3b834e23835df9c077329e39.tar.xz mana-client-91111ca5d13072ea3b834e23835df9c077329e39.zip |
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r-- | src/statuseffect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index 8872fd7b..7a50e794 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -39,19 +39,19 @@ StatusEffect::~StatusEffect() void StatusEffect::playSFX() { - if (mSFXEffect != "") + if (!mSFXEffect.empty()) sound.playSfx(mSFXEffect); } void StatusEffect::deliverMessage() { - if (mMessage != "") + if (!mMessage.empty()) chatWindow->chatLog(mMessage, BY_SERVER); } Particle *StatusEffect::getParticle() { - if (mParticleEffect == "") + if (mParticleEffect.empty()) return NULL; else return particleEngine->addEffect(mParticleEffect, 0, 0); @@ -59,7 +59,7 @@ Particle *StatusEffect::getParticle() AnimatedSprite *StatusEffect::getIcon() { - if (mIcon == "") + if (mIcon.empty()) return NULL; else { AnimatedSprite *sprite = AnimatedSprite::load( @@ -74,7 +74,7 @@ AnimatedSprite *StatusEffect::getIcon() SpriteAction StatusEffect::getAction() { - if (mAction == "") + if (mAction.empty()) return ACTION_INVALID; else return SpriteDef::makeSpriteAction(mAction); |