diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-19 00:59:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-19 00:59:33 +0300 |
commit | c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3 (patch) | |
tree | 444e859906b9bfe66b49fcb1f91d51c9541f13e0 | |
parent | 41951c02b8636bce19c488aae738d7d0ac61df3d (diff) | |
download | manaverse-c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3.tar.gz manaverse-c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3.tar.bz2 manaverse-c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3.tar.xz manaverse-c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3.zip |
Fix code style in effectmanager.
-rw-r--r-- | src/effectmanager.cpp | 3 | ||||
-rw-r--r-- | src/effectmanager.h | 10 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index dafe977d7..fbcdade40 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -51,7 +51,8 @@ void EffectManager::loadXmlFile(const std::string &fileName) XML::Document doc(fileName, UseResman_true, SkipError_false); const XmlNodePtrConst root = doc.rootNode(); - if (!root || !xmlNameEqual(root, "being-effects")) + if (!root || + !xmlNameEqual(root, "being-effects")) { logger->log("Error loading being effects file: " + fileName); return; diff --git a/src/effectmanager.h b/src/effectmanager.h index 16425908a..a76899e25 100644 --- a/src/effectmanager.h +++ b/src/effectmanager.h @@ -51,12 +51,16 @@ class EffectManager final * Triggers a effect with the id, at * the specified being. */ - bool trigger(const int id, Being *const being, const int rotation = 0); + bool trigger(const int id, + Being *const being, + const int rotation = 0); - bool triggerDirection(const int id, Being *const being, + bool triggerDirection(const int id, + Being *const being, const SpriteDirection::Type &direction); - Particle *triggerReturn(const int id, Being *const being, + Particle *triggerReturn(const int id, + Being *const being, const int rotation = 0); /** |