mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
*)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done
and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
66c98859cf
commit
2e08a63da7
14 changed files with 40 additions and 40 deletions
|
|
@ -472,7 +472,7 @@ uint8 ArenaTeam::GetSlot() const
|
||||||
|
|
||||||
void ArenaTeam::BroadcastPacket(WorldPacket *packet)
|
void ArenaTeam::BroadcastPacket(WorldPacket *packet)
|
||||||
{
|
{
|
||||||
for (MemberList::iterator itr = members.begin(); itr != members.end(); itr++)
|
for (MemberList::iterator itr = members.begin(); itr != members.end(); ++itr)
|
||||||
{
|
{
|
||||||
Player *player = objmgr.GetPlayer(itr->guid);
|
Player *player = objmgr.GetPlayer(itr->guid);
|
||||||
if(player)
|
if(player)
|
||||||
|
|
|
||||||
|
|
@ -689,7 +689,7 @@ void Creature::prepareGossipMenu( Player *pPlayer,uint32 gossipid )
|
||||||
// lazy loading single time at use
|
// lazy loading single time at use
|
||||||
LoadGossipOptions();
|
LoadGossipOptions();
|
||||||
|
|
||||||
for( GossipOptionList::iterator i = m_goptions.begin( ); i != m_goptions.end( ); i++ )
|
for( GossipOptionList::iterator i = m_goptions.begin( ); i != m_goptions.end( ); ++i )
|
||||||
{
|
{
|
||||||
GossipOption* gso=&*i;
|
GossipOption* gso=&*i;
|
||||||
if(gso->GossipId == gossipid)
|
if(gso->GossipId == gossipid)
|
||||||
|
|
@ -1009,7 +1009,7 @@ uint32 Creature::GetNpcTextId()
|
||||||
|
|
||||||
GossipOption const* Creature::GetGossipOption( uint32 id ) const
|
GossipOption const* Creature::GetGossipOption( uint32 id ) const
|
||||||
{
|
{
|
||||||
for( GossipOptionList::const_iterator i = m_goptions.begin( ); i != m_goptions.end( ); i++ )
|
for( GossipOptionList::const_iterator i = m_goptions.begin( ); i != m_goptions.end( ); ++i )
|
||||||
{
|
{
|
||||||
if(i->Action==id )
|
if(i->Action==id )
|
||||||
return &*i;
|
return &*i;
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,7 @@ void QuestMenu::AddMenuItem( uint32 QuestId, uint8 Icon)
|
||||||
|
|
||||||
bool QuestMenu::HasItem( uint32 questid )
|
bool QuestMenu::HasItem( uint32 questid )
|
||||||
{
|
{
|
||||||
for (QuestMenuItemList::iterator i = m_qItems.begin(); i != m_qItems.end(); i++)
|
for (QuestMenuItemList::iterator i = m_qItems.begin(); i != m_qItems.end(); ++i)
|
||||||
{
|
{
|
||||||
if(i->m_qId==questid)
|
if(i->m_qId==questid)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1109,7 +1109,7 @@ void Group::_setLeader(const uint64 &guid)
|
||||||
|
|
||||||
void Group::_removeRolls(const uint64 &guid)
|
void Group::_removeRolls(const uint64 &guid)
|
||||||
{
|
{
|
||||||
for (Rolls::iterator it = RollId.begin(); it < RollId.end(); it++)
|
for (Rolls::iterator it = RollId.begin(); it < RollId.end(); ++it)
|
||||||
{
|
{
|
||||||
Roll* roll = *it;
|
Roll* roll = *it;
|
||||||
Roll::PlayerVote::iterator itr2 = roll->playerVote.find(guid);
|
Roll::PlayerVote::iterator itr2 = roll->playerVote.find(guid);
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@ void InstanceSaveManager::PackInstances()
|
||||||
|
|
||||||
uint32 InstanceNumber = 1;
|
uint32 InstanceNumber = 1;
|
||||||
// we do assume std::set is sorted properly on integer value
|
// we do assume std::set is sorted properly on integer value
|
||||||
for (std::set< uint32 >::iterator i = InstanceSet.begin(); i != InstanceSet.end(); i++)
|
for (std::set< uint32 >::iterator i = InstanceSet.begin(); i != InstanceSet.end(); ++i)
|
||||||
{
|
{
|
||||||
if (*i != InstanceNumber)
|
if (*i != InstanceNumber)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -910,7 +910,7 @@ void LootTemplate::Process(Loot& loot, LootStore const& store, uint8 groupId) co
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rolling non-grouped items
|
// Rolling non-grouped items
|
||||||
for (LootStoreItemList::const_iterator i = Entries.begin() ; i != Entries.end() ; i++ )
|
for (LootStoreItemList::const_iterator i = Entries.begin() ; i != Entries.end() ; ++i )
|
||||||
{
|
{
|
||||||
if ( !i->Roll() )
|
if ( !i->Roll() )
|
||||||
continue; // Bad luck for the entry
|
continue; // Bad luck for the entry
|
||||||
|
|
@ -930,7 +930,7 @@ void LootTemplate::Process(Loot& loot, LootStore const& store, uint8 groupId) co
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now processing groups
|
// Now processing groups
|
||||||
for (LootGroups::const_iterator i = Groups.begin( ) ; i != Groups.end( ) ; i++ )
|
for (LootGroups::const_iterator i = Groups.begin( ) ; i != Groups.end( ) ; ++i )
|
||||||
i->Process(loot);
|
i->Process(loot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -959,7 +959,7 @@ bool LootTemplate::HasQuestDrop(LootTemplateMap const& store, uint8 groupId) con
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now processing groups
|
// Now processing groups
|
||||||
for (LootGroups::const_iterator i = Groups.begin() ; i != Groups.end() ; i++ )
|
for (LootGroups::const_iterator i = Groups.begin() ; i != Groups.end() ; ++i )
|
||||||
if (i->HasQuestDrop())
|
if (i->HasQuestDrop())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
@ -977,7 +977,7 @@ bool LootTemplate::HasQuestDropForPlayer(LootTemplateMap const& store, Player co
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checking non-grouped entries
|
// Checking non-grouped entries
|
||||||
for (LootStoreItemList::const_iterator i = Entries.begin() ; i != Entries.end() ; i++ )
|
for (LootStoreItemList::const_iterator i = Entries.begin() ; i != Entries.end() ; ++i )
|
||||||
{
|
{
|
||||||
if (i->mincountOrRef < 0) // References processing
|
if (i->mincountOrRef < 0) // References processing
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ void MapInstanced::Update(const uint32& t)
|
||||||
|
|
||||||
void MapInstanced::MoveAllCreaturesInMoveList()
|
void MapInstanced::MoveAllCreaturesInMoveList()
|
||||||
{
|
{
|
||||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); i++)
|
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||||
{
|
{
|
||||||
i->second->MoveAllCreaturesInMoveList();
|
i->second->MoveAllCreaturesInMoveList();
|
||||||
}
|
}
|
||||||
|
|
@ -67,7 +67,7 @@ void MapInstanced::MoveAllCreaturesInMoveList()
|
||||||
|
|
||||||
void MapInstanced::RemoveAllObjectsInRemoveList()
|
void MapInstanced::RemoveAllObjectsInRemoveList()
|
||||||
{
|
{
|
||||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); i++)
|
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||||
{
|
{
|
||||||
i->second->RemoveAllObjectsInRemoveList();
|
i->second->RemoveAllObjectsInRemoveList();
|
||||||
}
|
}
|
||||||
|
|
@ -79,7 +79,7 @@ bool MapInstanced::RemoveBones(uint64 guid, float x, float y)
|
||||||
{
|
{
|
||||||
bool remove_result = false;
|
bool remove_result = false;
|
||||||
|
|
||||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); i++)
|
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||||
{
|
{
|
||||||
remove_result = remove_result || i->second->RemoveBones(guid, x, y);
|
remove_result = remove_result || i->second->RemoveBones(guid, x, y);
|
||||||
}
|
}
|
||||||
|
|
@ -90,11 +90,11 @@ bool MapInstanced::RemoveBones(uint64 guid, float x, float y)
|
||||||
void MapInstanced::UnloadAll(bool pForce)
|
void MapInstanced::UnloadAll(bool pForce)
|
||||||
{
|
{
|
||||||
// Unload instanced maps
|
// Unload instanced maps
|
||||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); i++)
|
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||||
i->second->UnloadAll(pForce);
|
i->second->UnloadAll(pForce);
|
||||||
|
|
||||||
// Delete the maps only after everything is unloaded to prevent crashes
|
// Delete the maps only after everything is unloaded to prevent crashes
|
||||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); i++)
|
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||||
delete i->second;
|
delete i->second;
|
||||||
|
|
||||||
m_InstancedMaps.clear();
|
m_InstancedMaps.clear();
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ Group * ObjectMgr::GetGroupByLeader(const uint64 &guid) const
|
||||||
|
|
||||||
Guild * ObjectMgr::GetGuildById(const uint32 GuildId) const
|
Guild * ObjectMgr::GetGuildById(const uint32 GuildId) const
|
||||||
{
|
{
|
||||||
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); itr++)
|
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); ++itr)
|
||||||
if ((*itr)->GetId() == GuildId)
|
if ((*itr)->GetId() == GuildId)
|
||||||
return *itr;
|
return *itr;
|
||||||
|
|
||||||
|
|
@ -201,7 +201,7 @@ Guild * ObjectMgr::GetGuildById(const uint32 GuildId) const
|
||||||
|
|
||||||
Guild * ObjectMgr::GetGuildByName(std::string guildname) const
|
Guild * ObjectMgr::GetGuildByName(std::string guildname) const
|
||||||
{
|
{
|
||||||
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); itr++)
|
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); ++itr)
|
||||||
if ((*itr)->GetName() == guildname)
|
if ((*itr)->GetName() == guildname)
|
||||||
return *itr;
|
return *itr;
|
||||||
|
|
||||||
|
|
@ -210,7 +210,7 @@ Guild * ObjectMgr::GetGuildByName(std::string guildname) const
|
||||||
|
|
||||||
std::string ObjectMgr::GetGuildNameById(const uint32 GuildId) const
|
std::string ObjectMgr::GetGuildNameById(const uint32 GuildId) const
|
||||||
{
|
{
|
||||||
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); itr++)
|
for(GuildSet::const_iterator itr = mGuildSet.begin(); itr != mGuildSet.end(); ++itr)
|
||||||
if ((*itr)->GetId() == GuildId)
|
if ((*itr)->GetId() == GuildId)
|
||||||
return (*itr)->GetName();
|
return (*itr)->GetName();
|
||||||
|
|
||||||
|
|
@ -228,7 +228,7 @@ Guild* ObjectMgr::GetGuildByLeader(const uint64 &guid) const
|
||||||
|
|
||||||
ArenaTeam* ObjectMgr::GetArenaTeamById(const uint32 ArenaTeamId) const
|
ArenaTeam* ObjectMgr::GetArenaTeamById(const uint32 ArenaTeamId) const
|
||||||
{
|
{
|
||||||
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); itr++)
|
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); ++itr)
|
||||||
if ((*itr)->GetId() == ArenaTeamId)
|
if ((*itr)->GetId() == ArenaTeamId)
|
||||||
return *itr;
|
return *itr;
|
||||||
|
|
||||||
|
|
@ -237,7 +237,7 @@ ArenaTeam* ObjectMgr::GetArenaTeamById(const uint32 ArenaTeamId) const
|
||||||
|
|
||||||
ArenaTeam* ObjectMgr::GetArenaTeamByName(std::string arenateamname) const
|
ArenaTeam* ObjectMgr::GetArenaTeamByName(std::string arenateamname) const
|
||||||
{
|
{
|
||||||
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); itr++)
|
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); ++itr)
|
||||||
if ((*itr)->GetName() == arenateamname)
|
if ((*itr)->GetName() == arenateamname)
|
||||||
return *itr;
|
return *itr;
|
||||||
|
|
||||||
|
|
@ -246,7 +246,7 @@ ArenaTeam* ObjectMgr::GetArenaTeamByName(std::string arenateamname) const
|
||||||
|
|
||||||
ArenaTeam* ObjectMgr::GetArenaTeamByCapitan(uint64 const& guid) const
|
ArenaTeam* ObjectMgr::GetArenaTeamByCapitan(uint64 const& guid) const
|
||||||
{
|
{
|
||||||
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); itr++)
|
for(ArenaTeamSet::const_iterator itr = mArenaTeamSet.begin(); itr != mArenaTeamSet.end(); ++itr)
|
||||||
if ((*itr)->GetCaptain() == guid)
|
if ((*itr)->GetCaptain() == guid)
|
||||||
return *itr;
|
return *itr;
|
||||||
|
|
||||||
|
|
@ -2862,7 +2862,7 @@ void ObjectMgr::LoadQuests()
|
||||||
delete result;
|
delete result;
|
||||||
|
|
||||||
// Post processing
|
// Post processing
|
||||||
for (QuestMap::iterator iter = mQuestTemplates.begin(); iter != mQuestTemplates.end(); iter++)
|
for (QuestMap::iterator iter = mQuestTemplates.begin(); iter != mQuestTemplates.end(); ++iter)
|
||||||
{
|
{
|
||||||
Quest * qinfo = iter->second;
|
Quest * qinfo = iter->second;
|
||||||
|
|
||||||
|
|
@ -4081,7 +4081,7 @@ void ObjectMgr::LoadPageTexts()
|
||||||
{
|
{
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
ss<< "The text page(s) ";
|
ss<< "The text page(s) ";
|
||||||
for (std::set<uint32>::iterator itr= checkedPages.begin();itr!=checkedPages.end(); itr++)
|
for (std::set<uint32>::iterator itr= checkedPages.begin();itr!=checkedPages.end(); ++itr)
|
||||||
ss << *itr << " ";
|
ss << *itr << " ";
|
||||||
ss << "create(s) a circular reference, which can cause the server to freeze. Changing Next_Page of page "
|
ss << "create(s) a circular reference, which can cause the server to freeze. Changing Next_Page of page "
|
||||||
<< pageItr->Page_ID <<" to 0";
|
<< pageItr->Page_ID <<" to 0";
|
||||||
|
|
@ -5065,7 +5065,7 @@ AreaTrigger const* ObjectMgr::GetGoBackTrigger(uint32 Map) const
|
||||||
{
|
{
|
||||||
const MapEntry *mapEntry = sMapStore.LookupEntry(Map);
|
const MapEntry *mapEntry = sMapStore.LookupEntry(Map);
|
||||||
if(!mapEntry) return NULL;
|
if(!mapEntry) return NULL;
|
||||||
for (AreaTriggerMap::const_iterator itr = mAreaTriggers.begin(); itr != mAreaTriggers.end(); itr++)
|
for (AreaTriggerMap::const_iterator itr = mAreaTriggers.begin(); itr != mAreaTriggers.end(); ++itr)
|
||||||
{
|
{
|
||||||
if(itr->second.target_mapId == mapEntry->entrance_map)
|
if(itr->second.target_mapId == mapEntry->entrance_map)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1493,7 +1493,7 @@ bool Pet::addSpell(uint16 spell_id, uint16 active, PetSpellState state, uint16 s
|
||||||
|
|
||||||
uint32 chainstart = spellmgr.GetFirstSpellInChain(spell_id);
|
uint32 chainstart = spellmgr.GetFirstSpellInChain(spell_id);
|
||||||
|
|
||||||
for (PetSpellMap::iterator itr = m_spells.begin(); itr != m_spells.end(); itr++)
|
for (PetSpellMap::iterator itr = m_spells.begin(); itr != m_spells.end(); ++itr)
|
||||||
{
|
{
|
||||||
if(itr->second->state == PETSPELL_REMOVED) continue;
|
if(itr->second->state == PETSPELL_REMOVED) continue;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2390,7 +2390,7 @@ void Player::SendInitialSpells()
|
||||||
|
|
||||||
uint16 spellCooldowns = m_spellCooldowns.size();
|
uint16 spellCooldowns = m_spellCooldowns.size();
|
||||||
data << uint16(spellCooldowns);
|
data << uint16(spellCooldowns);
|
||||||
for(SpellCooldowns::const_iterator itr=m_spellCooldowns.begin(); itr!=m_spellCooldowns.end(); itr++)
|
for(SpellCooldowns::const_iterator itr=m_spellCooldowns.begin(); itr!=m_spellCooldowns.end(); ++itr)
|
||||||
{
|
{
|
||||||
SpellEntry const *sEntry = sSpellStore.LookupEntry(itr->first);
|
SpellEntry const *sEntry = sSpellStore.LookupEntry(itr->first);
|
||||||
if(!sEntry)
|
if(!sEntry)
|
||||||
|
|
@ -3212,7 +3212,7 @@ bool Player::_removeSpell(uint16 spell_id)
|
||||||
|
|
||||||
Mail* Player::GetMail(uint32 id)
|
Mail* Player::GetMail(uint32 id)
|
||||||
{
|
{
|
||||||
for(PlayerMails::iterator itr = m_mail.begin(); itr != m_mail.end(); itr++)
|
for(PlayerMails::iterator itr = m_mail.begin(); itr != m_mail.end(); ++itr)
|
||||||
{
|
{
|
||||||
if ((*itr)->messageID == id)
|
if ((*itr)->messageID == id)
|
||||||
{
|
{
|
||||||
|
|
@ -5400,7 +5400,7 @@ void Player::SendInitialReputations()
|
||||||
|
|
||||||
RepListID a = 0;
|
RepListID a = 0;
|
||||||
|
|
||||||
for (FactionStateList::const_iterator itr = m_factions.begin(); itr != m_factions.end(); itr++)
|
for (FactionStateList::const_iterator itr = m_factions.begin(); itr != m_factions.end(); ++itr)
|
||||||
{
|
{
|
||||||
// fill in absent fields
|
// fill in absent fields
|
||||||
for (; a != itr->first; a++)
|
for (; a != itr->first; a++)
|
||||||
|
|
@ -6353,7 +6353,7 @@ void Player::DuelComplete(DuelCompleteType type)
|
||||||
/* remove auras */
|
/* remove auras */
|
||||||
std::vector<uint32> auras2remove;
|
std::vector<uint32> auras2remove;
|
||||||
AuraMap const& vAuras = duel->opponent->GetAuras();
|
AuraMap const& vAuras = duel->opponent->GetAuras();
|
||||||
for (AuraMap::const_iterator i = vAuras.begin(); i != vAuras.end(); i++)
|
for (AuraMap::const_iterator i = vAuras.begin(); i != vAuras.end(); ++i)
|
||||||
{
|
{
|
||||||
if (!i->second->IsPositive() && i->second->GetCasterGUID() == GetGUID() && i->second->GetAuraApplyTime() >= duel->startTime)
|
if (!i->second->IsPositive() && i->second->GetCasterGUID() == GetGUID() && i->second->GetAuraApplyTime() >= duel->startTime)
|
||||||
auras2remove.push_back(i->second->GetId());
|
auras2remove.push_back(i->second->GetId());
|
||||||
|
|
@ -6364,7 +6364,7 @@ void Player::DuelComplete(DuelCompleteType type)
|
||||||
|
|
||||||
auras2remove.clear();
|
auras2remove.clear();
|
||||||
AuraMap const& auras = GetAuras();
|
AuraMap const& auras = GetAuras();
|
||||||
for (AuraMap::const_iterator i = auras.begin(); i != auras.end(); i++)
|
for (AuraMap::const_iterator i = auras.begin(); i != auras.end(); ++i)
|
||||||
{
|
{
|
||||||
if (!i->second->IsPositive() && i->second->GetCasterGUID() == duel->opponent->GetGUID() && i->second->GetAuraApplyTime() >= duel->startTime)
|
if (!i->second->IsPositive() && i->second->GetCasterGUID() == duel->opponent->GetGUID() && i->second->GetAuraApplyTime() >= duel->startTime)
|
||||||
auras2remove.push_back(i->second->GetId());
|
auras2remove.push_back(i->second->GetId());
|
||||||
|
|
@ -14662,13 +14662,13 @@ void Player::SendRaidInfo()
|
||||||
|
|
||||||
uint32 counter = 0, i;
|
uint32 counter = 0, i;
|
||||||
for(i = 0; i < TOTAL_DIFFICULTIES; i++)
|
for(i = 0; i < TOTAL_DIFFICULTIES; i++)
|
||||||
for (BoundInstancesMap::iterator itr = m_boundInstances[i].begin(); itr != m_boundInstances[i].end(); itr++)
|
for (BoundInstancesMap::iterator itr = m_boundInstances[i].begin(); itr != m_boundInstances[i].end(); ++itr)
|
||||||
if(itr->second.perm) counter++;
|
if(itr->second.perm) counter++;
|
||||||
|
|
||||||
data << counter;
|
data << counter;
|
||||||
for(i = 0; i < TOTAL_DIFFICULTIES; i++)
|
for(i = 0; i < TOTAL_DIFFICULTIES; i++)
|
||||||
{
|
{
|
||||||
for (BoundInstancesMap::iterator itr = m_boundInstances[i].begin(); itr != m_boundInstances[i].end(); itr++)
|
for (BoundInstancesMap::iterator itr = m_boundInstances[i].begin(); itr != m_boundInstances[i].end(); ++itr)
|
||||||
{
|
{
|
||||||
if(itr->second.perm)
|
if(itr->second.perm)
|
||||||
{
|
{
|
||||||
|
|
@ -15165,7 +15165,7 @@ void Player::_SaveMail()
|
||||||
if (!m_mailsLoaded)
|
if (!m_mailsLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (PlayerMails::iterator itr = m_mail.begin(); itr != m_mail.end(); itr++)
|
for (PlayerMails::iterator itr = m_mail.begin(); itr != m_mail.end(); ++itr)
|
||||||
{
|
{
|
||||||
Mail *m = (*itr);
|
Mail *m = (*itr);
|
||||||
if (m->state == MAIL_STATE_CHANGED)
|
if (m->state == MAIL_STATE_CHANGED)
|
||||||
|
|
@ -15846,7 +15846,7 @@ void Player::PetSpellInitialize()
|
||||||
|
|
||||||
if(pet->isControlled() && (pet->getPetType() == HUNTER_PET || cinfo && cinfo->type == CREATURE_TYPE_DEMON && getClass() == CLASS_WARLOCK))
|
if(pet->isControlled() && (pet->getPetType() == HUNTER_PET || cinfo && cinfo->type == CREATURE_TYPE_DEMON && getClass() == CLASS_WARLOCK))
|
||||||
{
|
{
|
||||||
for(PetSpellMap::iterator itr = pet->m_spells.begin();itr != pet->m_spells.end();itr++)
|
for(PetSpellMap::iterator itr = pet->m_spells.begin();itr != pet->m_spells.end();++itr)
|
||||||
{
|
{
|
||||||
if(itr->second->state == PETSPELL_REMOVED)
|
if(itr->second->state == PETSPELL_REMOVED)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -637,7 +637,7 @@ void Spell::FillTargetMap()
|
||||||
if(m_caster->GetTypeId() == TYPEID_PLAYER)
|
if(m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
Player *me = (Player*)m_caster;
|
Player *me = (Player*)m_caster;
|
||||||
for (std::list<Unit*>::const_iterator itr = tmpUnitMap.begin(); itr != tmpUnitMap.end(); itr++)
|
for (std::list<Unit*>::const_iterator itr = tmpUnitMap.begin(); itr != tmpUnitMap.end(); ++itr)
|
||||||
{
|
{
|
||||||
Unit *owner = (*itr)->GetOwner();
|
Unit *owner = (*itr)->GetOwner();
|
||||||
Unit *u = owner ? owner : (*itr);
|
Unit *u = owner ? owner : (*itr);
|
||||||
|
|
@ -4150,7 +4150,7 @@ uint8 Spell::CheckCasterAuras() const
|
||||||
{
|
{
|
||||||
//Checking auras is needed now, because you are prevented by some state but the spell grants immunity.
|
//Checking auras is needed now, because you are prevented by some state but the spell grants immunity.
|
||||||
Unit::AuraMap const& auras = m_caster->GetAuras();
|
Unit::AuraMap const& auras = m_caster->GetAuras();
|
||||||
for(Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); itr++)
|
for(Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
|
||||||
{
|
{
|
||||||
if(itr->second)
|
if(itr->second)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2141,7 +2141,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
|
|
||||||
// have a look if there is still some other Lifebloom dummy aura
|
// have a look if there is still some other Lifebloom dummy aura
|
||||||
Unit::AuraList auras = m_target->GetAurasByType(SPELL_AURA_DUMMY);
|
Unit::AuraList auras = m_target->GetAurasByType(SPELL_AURA_DUMMY);
|
||||||
for(Unit::AuraList::iterator itr = auras.begin(); itr!=auras.end(); itr++)
|
for(Unit::AuraList::iterator itr = auras.begin(); itr!=auras.end(); ++itr)
|
||||||
if((*itr)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID &&
|
if((*itr)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID &&
|
||||||
(*itr)->GetSpellProto()->SpellFamilyFlags & 0x1000000000LL)
|
(*itr)->GetSpellProto()->SpellFamilyFlags & 0x1000000000LL)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ Unit* HostilReference::getSourceUnit()
|
||||||
|
|
||||||
void ThreatContainer::clearReferences()
|
void ThreatContainer::clearReferences()
|
||||||
{
|
{
|
||||||
for(std::list<HostilReference*>::iterator i = iThreatList.begin(); i != iThreatList.end(); i++)
|
for(std::list<HostilReference*>::iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)
|
||||||
{
|
{
|
||||||
(*i)->unlink();
|
(*i)->unlink();
|
||||||
delete (*i);
|
delete (*i);
|
||||||
|
|
@ -206,7 +206,7 @@ HostilReference* ThreatContainer::getReferenceByTarget(Unit* pVictim)
|
||||||
{
|
{
|
||||||
HostilReference* result = NULL;
|
HostilReference* result = NULL;
|
||||||
uint64 guid = pVictim->GetGUID();
|
uint64 guid = pVictim->GetGUID();
|
||||||
for(std::list<HostilReference*>::iterator i = iThreatList.begin(); i != iThreatList.end(); i++)
|
for(std::list<HostilReference*>::iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)
|
||||||
{
|
{
|
||||||
if((*i)->getUnitGuid() == guid)
|
if((*i)->getUnitGuid() == guid)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6883"
|
#define REVISION_NR "6884"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue