diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-10 17:19:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-01-10 17:20:33 +0100 |
commit | f5a394a5051384a930d635da22ccafc6beb1cb84 (patch) | |
tree | d28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/statuseffect.cpp | |
parent | 5757066312cab082378dbc5d8df97dea3fe40af0 (diff) | |
download | mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2 mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.zip |
Change code style
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; |