mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
BattleGroundMgr::RemoveBattleGround inlined.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
aa2a454ca1
commit
5d63453deb
2 changed files with 6 additions and 13 deletions
|
|
@ -245,7 +245,7 @@ void BattleGroundQueue::AddPlayer(Player *plr, GroupQueueInfo *ginfo)
|
|||
ginfo->Players[plr->GetGUID()] = &info;
|
||||
}
|
||||
|
||||
void BattleGroundQueue::RemovePlayer(uint64 guid, bool decreaseInvitedCount)
|
||||
void BattleGroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCount)
|
||||
{
|
||||
Player *plr = objmgr.GetPlayer(guid);
|
||||
|
||||
|
|
@ -361,7 +361,7 @@ void BattleGroundQueue::RemovePlayer(uint64 guid, bool decreaseInvitedCount)
|
|||
}
|
||||
}
|
||||
|
||||
void BattleGroundQueue::AnnounceWorld(GroupQueueInfo *ginfo, uint64 playerGUID, bool isAddedToQueue)
|
||||
void BattleGroundQueue::AnnounceWorld(GroupQueueInfo *ginfo, const uint64& playerGUID, bool isAddedToQueue)
|
||||
{
|
||||
|
||||
if(ginfo->ArenaType) //if Arena
|
||||
|
|
@ -1820,13 +1820,6 @@ void BattleGroundMgr::SendAreaSpiritHealerQueryOpcode(Player *pl, BattleGround *
|
|||
pl->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void BattleGroundMgr::RemoveBattleGround(uint32 instanceID)
|
||||
{
|
||||
BattleGroundSet::iterator itr = m_BattleGrounds.find(instanceID);
|
||||
if(itr!=m_BattleGrounds.end())
|
||||
m_BattleGrounds.erase(itr);
|
||||
}
|
||||
|
||||
bool BattleGroundMgr::IsArenaType(uint32 bgTypeId) const
|
||||
{
|
||||
return ( bgTypeId == BATTLEGROUND_AA ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue