diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
commit | 767b8400fb086616616a298655f0bc2eaf239256 (patch) | |
tree | 9d82215887c79c596127506f50daf2ed31c23d8c /src/spellmanager.cpp | |
parent | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff) | |
download | mv-767b8400fb086616616a298655f0bc2eaf239256.tar.gz mv-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2 mv-767b8400fb086616616a298655f0bc2eaf239256.tar.xz mv-767b8400fb086616616a298655f0bc2eaf239256.zip |
Fix code style in other files.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<unsigned int>(spellId) >= mSpells.size()) + if (spellId < 0 || static_cast<size_t>(spellId) >= mSpells.size()) return nullptr; const std::map<unsigned int, TextCommand*>::const_iterator @@ -142,8 +142,8 @@ void SpellManager::invoke(const int spellId) const || (Net::getPlayerHandler()->canUseMagic() && PlayerInfo::getSkillLevel(SKILL_MAGIC) >= static_cast<signed>(spell->getBaseLvl()) - && PlayerInfo::getSkillLevel( - spell->getSchool()) >= static_cast<signed>(spell->getSchoolLvl()) + && PlayerInfo::getSkillLevel(static_cast<int>( + spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl()) && PlayerInfo::getAttribute(PlayerInfo::MP) >= spell->getMana())) { const Being *const target = player_node->getTarget(); |