diff options
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r-- | src/statuseffect.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index fe076a55..7ef1be19 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -63,10 +63,12 @@ AnimatedSprite *StatusEffect::getIcon() { if (mIcon.empty()) return NULL; - else { + else + { AnimatedSprite *sprite = AnimatedSprite::load( "graphics/sprites/" + mIcon); - if (false && sprite) { + if (false && sprite) + { sprite->play(ACTION_DEFAULT); sprite->reset(); } @@ -135,10 +137,12 @@ void StatusEffect::load() if (index >= 0 && block_index >= 0) blockEffectIndexMap[block_index] = index; - } else if (xmlStrEqual(node->name, BAD_CAST "stun-effect")) + } + else if (xmlStrEqual(node->name, BAD_CAST "stun-effect")) the_map = &stunEffects; - if (the_map) { + if (the_map) + { StatusEffect *startEffect = new StatusEffect; StatusEffect *endEffect = new StatusEffect; |