*Wintergrasp: only allow a workshop to build 4 vehicles.

*remove all existing vehicles when workshop is destroyed or captured.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-19 23:05:36 -05:00
parent 411902af03
commit cf9022aa16
6 changed files with 137 additions and 20 deletions
+2 -3
View File
@@ -584,7 +584,6 @@ void OutdoorPvP::OnGameObjectCreate(GameObject *go, bool add)
if(go->GetGoType() != GAMEOBJECT_TYPE_CAPTURE_POINT)
return;
OutdoorPvP::OPvPCapturePointMap::iterator itr = m_capturePoints.find(go->GetDBTableGUIDLow());
if(itr != m_capturePoints.end())
itr->second->m_capturePoint = add ? go : NULL;
if(OPvPCapturePoint *cp = GetCapturePoint(go->GetDBTableGUIDLow()))
cp->m_capturePoint = add ? go : NULL;
}