diff options
| author | w12x <none@none> | 2008-12-23 10:00:03 +0100 |
|---|---|---|
| committer | w12x <none@none> | 2008-12-23 10:00:03 +0100 |
| commit | f40479e87fc2d8e83f9f9ddcfb487d4275f02039 (patch) | |
| tree | 70fad7e6d57f3aa6581eeec3a2f5fe50da0b480d /src/game/OutdoorPvPTF.cpp | |
| parent | 96e35de691d7f0ea09493a902946028526a22227 (diff) | |
Periodically check player proximity to outdoor pvp objectives.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPTF.cpp')
| -rw-r--r-- | src/game/OutdoorPvPTF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/OutdoorPvPTF.cpp b/src/game/OutdoorPvPTF.cpp index a44b0e6642a..756290c257b 100644 --- a/src/game/OutdoorPvPTF.cpp +++ b/src/game/OutdoorPvPTF.cpp @@ -290,8 +290,8 @@ bool OutdoorPvPTF::SetupOutdoorPvP() bool OutdoorPvPObjectiveTF::Update(uint32 diff) { // can update even in locked state if gathers the controlling faction - bool canupdate = ((((OutdoorPvPTF*)m_PvP)->m_AllianceTowersControlled > 0) && this->m_AllianceActivePlayerCount > this->m_HordeActivePlayerCount) || - ((((OutdoorPvPTF*)m_PvP)->m_HordeTowersControlled > 0) && this->m_AllianceActivePlayerCount < this->m_HordeActivePlayerCount); + bool canupdate = ((((OutdoorPvPTF*)m_PvP)->m_AllianceTowersControlled > 0) && this->m_ActivePlayerGuids[0].size() > this->m_ActivePlayerGuids[1].size()) || + ((((OutdoorPvPTF*)m_PvP)->m_HordeTowersControlled > 0) && this->m_ActivePlayerGuids[0].size() < this->m_ActivePlayerGuids[1].size()); // if gathers the other faction, then only update if the pvp is unlocked canupdate = canupdate || !((OutdoorPvPTF*)m_PvP)->m_IsLocked; if(canupdate && OutdoorPvPObjective::Update(diff)) |
