From 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 23:25:02 +0200 Subject: Code Style (game + scripts only): "==" --> " == " (when needed) --HG-- branch : trunk --- src/game/GameObject.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/GameObject.cpp') 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 -- cgit v1.2.3