diff options
author | Spp <none@none> | 2010-04-07 23:25:02 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 23:25:02 +0200 |
commit | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (patch) | |
tree | b744629b9fc3004bcb717c5f95a10724df3a6a62 /src/game/GameObject.cpp | |
parent | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (diff) |
Code Style (game + scripts only):
"==" --> " == " (when needed)
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index f02cc1ba68e..1f3932c4f0f 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -732,7 +732,7 @@ bool GameObject::hasQuest(uint32 quest_id) const QuestRelations const& qr = objmgr.mGOQuestRelations; for (QuestRelations::const_iterator itr = qr.lower_bound(GetEntry()); itr != qr.upper_bound(GetEntry()); ++itr) { - if (itr->second==quest_id) + if (itr->second == quest_id) return true; } return false; @@ -743,7 +743,7 @@ bool GameObject::hasInvolvedQuest(uint32 quest_id) const QuestRelations const& qr = objmgr.mGOQuestInvolvedRelations; for (QuestRelations::const_iterator itr = qr.lower_bound(GetEntry()); itr != qr.upper_bound(GetEntry()); ++itr) { - if (itr->second==quest_id) + if (itr->second == quest_id) return true; } return false; @@ -1293,7 +1293,7 @@ void GameObject::Use(Unit* user) return; // accept only use by player from same group for caster except caster itself - if (caster->ToPlayer()==player || !caster->ToPlayer()->IsInSameRaidWith(player)) + if (caster->ToPlayer() == player || !caster->ToPlayer()->IsInSameRaidWith(player)) return; AddUniqueUse(player); @@ -1309,7 +1309,7 @@ void GameObject::Use(Unit* user) return; spellId = info->summoningRitual.spellId; - if (spellId==62330) // GO store not existed spell, replace by expected + if (spellId == 62330) // GO store not existed spell, replace by expected { // spell have reagent and mana cost but it not expected use its // it triggered spell in fact casted at currently channeled GO @@ -1372,7 +1372,7 @@ void GameObject::Use(Unit* user) if (level < info->meetingstone.minLevel) return; - if (info->id==194097) + if (info->id == 194097) spellId = 61994; // Ritual of Summoning else spellId = 59782; // Summoning Stone Effect |