From 767b8400fb086616616a298655f0bc2eaf239256 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:48:11 +0300 Subject: Fix code style in other files. --- src/spellmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/spellmanager.cpp') diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 0db577a48..aaf7ad302 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -52,7 +52,7 @@ SpellManager::~SpellManager() TextCommand* SpellManager::getSpell(const int spellId) const { - if (spellId < 0 || static_cast(spellId) >= mSpells.size()) + if (spellId < 0 || static_cast(spellId) >= mSpells.size()) return nullptr; const std::map::const_iterator @@ -142,8 +142,8 @@ void SpellManager::invoke(const int spellId) const || (Net::getPlayerHandler()->canUseMagic() && PlayerInfo::getSkillLevel(SKILL_MAGIC) >= static_cast(spell->getBaseLvl()) - && PlayerInfo::getSkillLevel( - spell->getSchool()) >= static_cast(spell->getSchoolLvl()) + && PlayerInfo::getSkillLevel(static_cast( + spell->getSchool())) >= static_cast(spell->getSchoolLvl()) && PlayerInfo::getAttribute(PlayerInfo::MP) >= spell->getMana())) { const Being *const target = player_node->getTarget(); -- cgit v1.2.3-70-g09d2