[7631] Removed useless method BattleGroundQueue::BGEndedRemoveInvites Author: Triply

Moved method BattleGroundMrg::InvitePlayer to BattleGroundQueue::InviteGroupToBG
    Added some comments to RemindInvite and RemoveInvite events.
    Optimalise code.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-08 16:29:28 -05:00
1 parent f48b123ebe
commit 3a21b3d758
3 files changed
+70 -142

No files matched your search

-5
View File
@@ -760,9 +760,6 @@ void BattleGround::EndBattleGround(uint32 winner)
loser_arena_team->NotifyStatsChanged();
}
// inform invited players about the removal
sBattleGroundMgr.m_BattleGroundQueues[BattleGroundMgr::BGQueueTypeId(GetTypeID(), GetArenaType())].BGEndedRemoveInvites(this);
if(winmsg_id)
SendMessageToAll(winmsg_id, CHAT_MSG_BG_SYSTEM_NEUTRAL);
}
@@ -1630,8 +1627,6 @@ void BattleGround::EndNow()
RemoveFromBGFreeSlotQueue();
SetStatus(STATUS_WAIT_LEAVE);
SetEndTime(0);
// inform invited players about the removal
sBattleGroundMgr.m_BattleGroundQueues[BattleGroundMgr::BGQueueTypeId(GetTypeID(), GetArenaType())].BGEndedRemoveInvites(this);
}
//to be removed