diff options
author | megamage <none@none> | 2009-08-19 18:17:30 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-19 18:17:30 -0500 |
commit | 47b30023a573dcd3daf67508da6c31ae2033e28f (patch) | |
tree | 5b152518842aa5517ebadc6830bd354da38f6606 /src/game/OutdoorPvPHP.cpp | |
parent | bd0dbcc9ad239e608ebc881558f64877b60d14d8 (diff) |
*Use map instead of vector to store capture points in opvp.
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPHP.cpp')
-rw-r--r-- | src/game/OutdoorPvPHP.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/OutdoorPvPHP.cpp b/src/game/OutdoorPvPHP.cpp index 4adb9541053..ef7c9a20594 100644 --- a/src/game/OutdoorPvPHP.cpp +++ b/src/game/OutdoorPvPHP.cpp @@ -36,7 +36,7 @@ const uint32 HP_LANG_CAPTURE_H[HP_TOWER_NUM] = {LANG_OPVP_HP_CAPTURE_BROKENHILL_ OPvPCapturePointHP::OPvPCapturePointHP(OutdoorPvP *pvp,OutdoorPvPHPTowerType type) : OPvPCapturePoint(pvp), m_TowerType(type) { - AddCapturePoint(HPCapturePoints[type].entry, + SetCapturePointData(HPCapturePoints[type].entry, HPCapturePoints[type].map, HPCapturePoints[type].x, HPCapturePoints[type].y, @@ -72,11 +72,11 @@ bool OutdoorPvPHP::SetupOutdoorPvP() for(int i = 0; i < OutdoorPvPHPBuffZonesNum; ++i) RegisterZone(OutdoorPvPHPBuffZones[i]); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_BROKEN_HILL)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_BROKEN_HILL)); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_OVERLOOK)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_OVERLOOK)); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_STADIUM)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_STADIUM)); return true; } @@ -159,7 +159,7 @@ void OutdoorPvPHP::FillInitialWorldStates(WorldPacket &data) data << uint32(HP_UI_TOWER_SLIDER_N) << uint32(100); for(OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr) { - (*itr)->FillInitialWorldStates(data); + itr->second->FillInitialWorldStates(data); } } |