From c3395e41d8b48de2958a3d6b9f9e07c2e44b65c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Nov 2015 00:59:33 +0300 Subject: Fix code style in effectmanager. --- src/effectmanager.cpp | 3 ++- src/effectmanager.h | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src') 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); /** -- cgit v1.2.3-70-g09d2