Periodically check player proximity to outdoor pvp objectives.

--HG--
branch : trunk
This commit is contained in:
w12x
2008-12-23 10:00:03 +01:00
parent 96e35de691
commit f40479e87f
4 changed files with 59 additions and 43 deletions
+2 -2
View File
@@ -577,9 +577,9 @@ bool OutdoorPvPObjectiveNA::Update(uint32 diff)
{
// let the controlling faction advance in phase
bool capturable = false;
if(m_ControllingFaction == ALLIANCE && m_AllianceActivePlayerCount > m_HordeActivePlayerCount)
if(m_ControllingFaction == ALLIANCE && m_ActivePlayerGuids[0].size() > m_ActivePlayerGuids[1].size())
capturable = true;
else if(m_ControllingFaction == HORDE && m_AllianceActivePlayerCount < m_HordeActivePlayerCount)
else if(m_ControllingFaction == HORDE && m_ActivePlayerGuids[0].size() < m_ActivePlayerGuids[1].size())
capturable = true;
if(m_GuardCheckTimer < diff)