*Display correct building damage state/team on map in wintergrasp.

*Rebuild buidlings after fortress is taken over.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-01 12:48:12 -05:00
parent 9ff8f1ab5e
commit b5a098643f
11 changed files with 155 additions and 23 deletions
+8
View File
@@ -497,6 +497,14 @@ bool OutdoorPvP::HandleAreaTrigger(Player *plr, uint32 trigger)
return false;
}
void OutdoorPvP::BroadcastPacket(WorldPacket &data)
{
// This is faster than sWorld.SendZoneMessage
for(uint32 team = 0; team < 2; ++team)
for(PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
(*itr)->GetSession()->SendPacket(&data);
}
void OutdoorPvP::RegisterZone(uint32 zoneId)
{
sOutdoorPvPMgr.AddZone(zoneId, this);