diff options
| author | Spp <none@none> | 2010-04-08 08:20:08 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-08 08:20:08 +0200 |
| commit | 4635fbc0201846721287a1eb730491262237babd (patch) | |
| tree | 5b02b41f0099fd9d3af7f3a826ef0ca6dfe80748 /src/game/Group.cpp | |
| parent | 46f0674e237dd8fe97ba4f0769e18b4adfce841b (diff) | |
Code Style (game + scripts only):
"!=" --> " != " (when needed)
" !=" --> " !="
"!= " --> "!= "
--HG--
branch : trunk
Diffstat (limited to 'src/game/Group.cpp')
| -rw-r--r-- | src/game/Group.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp index d4dc05a9b78..c06833354e6 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -258,7 +258,7 @@ uint32 Group::RemoveInvite(Player *player) void Group::RemoveAllInvites() { - for (InvitesList::iterator itr=m_invitees.begin(); itr!=m_invitees.end(); ++itr) + for (InvitesList::iterator itr=m_invitees.begin(); itr != m_invitees.end(); ++itr) (*itr)->SetGroupInvite(NULL); m_invitees.clear(); @@ -482,7 +482,7 @@ void Group::SendLootStartRoll(uint32 CountDown, const Roll &r) data << uint32(CountDown); // the countdown time to choose "need" or "greed" data << uint8(ALL_ROLL_TYPE_MASK); // roll type mask - for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr!=r.playerVote.end(); ++itr) + for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr != r.playerVote.end(); ++itr) { Player *p = objmgr.GetPlayer(itr->first); if (!p || !p->GetSession()) @@ -506,7 +506,7 @@ void Group::SendLootRoll(const uint64& SourceGuid, const uint64& TargetGuid, uin data << uint8(RollType); // 0: "Need for: [item name]" 0: "You have selected need for [item name] 1: need roll 2: greed roll data << uint8(0); // 2.4.0 - for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr!=r.playerVote.end(); ++itr) + for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr != r.playerVote.end(); ++itr) { Player *p = objmgr.GetPlayer(itr->first); if (!p || !p->GetSession()) @@ -529,7 +529,7 @@ void Group::SendLootRollWon(const uint64& SourceGuid, const uint64& TargetGuid, data << uint8(RollNumber); // rollnumber realted to SMSG_LOOT_ROLL data << uint8(RollType); // Rolltype related to SMSG_LOOT_ROLL - for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr!=r.playerVote.end(); ++itr) + for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr != r.playerVote.end(); ++itr) { Player *p = objmgr.GetPlayer(itr->first); if (!p || !p->GetSession()) @@ -549,7 +549,7 @@ void Group::SendLootAllPassed(uint32 NumberOfPlayers, const Roll &r) data << uint32(r.itemRandomPropId); // Item random property ID data << uint32(r.itemRandomSuffix); // Item random suffix ID - for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr!=r.playerVote.end(); ++itr) + for (Roll::PlayerVote::const_iterator itr=r.playerVote.begin(); itr != r.playerVote.end(); ++itr) { Player *p = objmgr.GetPlayer(itr->first); if (!p || !p->GetSession()) @@ -819,7 +819,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, uint32 NumberOfPlayers) uint64 maxguid = (*roll->playerVote.begin()).first; Player *player; - for (Roll::PlayerVote::const_iterator itr=roll->playerVote.begin(); itr!=roll->playerVote.end(); ++itr) + for (Roll::PlayerVote::const_iterator itr=roll->playerVote.begin(); itr != roll->playerVote.end(); ++itr) { if (itr->second != NEED) continue; @@ -1584,7 +1584,7 @@ bool Group::InCombatToInstance(uint32 instanceId) { Player *pPlayer = itr->getSource(); if (pPlayer && pPlayer->getAttackers().size() && pPlayer->GetInstanceId() == instanceId && (pPlayer->GetMap()->IsRaidOrHeroicDungeon())) - for (std::set<Unit*>::const_iterator i = pPlayer->getAttackers().begin(); i!=pPlayer->getAttackers().end(); ++i) + for (std::set<Unit*>::const_iterator i = pPlayer->getAttackers().begin(); i != pPlayer->getAttackers().end(); ++i) if ((*i) && (*i)->GetTypeId() == TYPEID_UNIT && (*i)->ToCreature()->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_INSTANCE_BIND) return true; } |
