diff options
| author | w12x <none@none> | 2008-12-22 18:36:25 +0100 |
|---|---|---|
| committer | w12x <none@none> | 2008-12-22 18:36:25 +0100 |
| commit | 657ee403e37eae8cf0af89f09c44c64169c97234 (patch) | |
| tree | 305ffbd5c2e82108359c668f7f07ea75c22e00f7 /src/game/OutdoorPvPZM.cpp | |
| parent | 65ef38963ddc60e05491ca9d3e2685913c0038bb (diff) | |
Performance improvements in outdoorpvp handling.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPZM.cpp')
| -rw-r--r-- | src/game/OutdoorPvPZM.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/OutdoorPvPZM.cpp b/src/game/OutdoorPvPZM.cpp index 071a008225f..076b0325835 100644 --- a/src/game/OutdoorPvPZM.cpp +++ b/src/game/OutdoorPvPZM.cpp @@ -142,7 +142,7 @@ bool OutdoorPvPObjectiveZM_Beacon::Update(uint32 diff) SendUpdateWorldState(ZMBeaconInfo[m_TowerType].slider_pos, phase); SendUpdateWorldState(ZMBeaconInfo[m_TowerType].slider_n, m_NeutralValue); } - return true; + return m_OldState != m_State; } return false; } @@ -205,10 +205,10 @@ bool OutdoorPvPZM::SetupOutdoorPvP() for(int i = 0; i < OutdoorPvPZMBuffZonesNum; ++i) sOutdoorPvPMgr.AddZone(OutdoorPvPZMBuffZones[i],this); - m_OutdoorPvPObjectives.insert(new OutdoorPvPObjectiveZM_Beacon(this,ZM_BEACON_WEST)); - m_OutdoorPvPObjectives.insert(new OutdoorPvPObjectiveZM_Beacon(this,ZM_BEACON_EAST)); + m_OutdoorPvPObjectives.push_back(new OutdoorPvPObjectiveZM_Beacon(this,ZM_BEACON_WEST)); + m_OutdoorPvPObjectives.push_back(new OutdoorPvPObjectiveZM_Beacon(this,ZM_BEACON_EAST)); m_GraveYard = new OutdoorPvPObjectiveZM_GraveYard(this); - m_OutdoorPvPObjectives.insert(m_GraveYard); // though the update function isn't used, the handleusego is! + m_OutdoorPvPObjectives.push_back(m_GraveYard); // though the update function isn't used, the handleusego is! return true; } |
