diff options
author | megamage <none@none> | 2009-08-21 12:51:11 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-21 12:51:11 -0500 |
commit | ae1450031f16f41034e38270fa89cadeff8c9c5f (patch) | |
tree | 3211cd91468f20e78e23fb4f61e44df6492ee45c /src/game/Wintergrasp.h | |
parent | 49abc30089bb902c10fc64d4e734b75cfbc5c426 (diff) |
*Use total max veh number instead of max veh number per workshop to check if can build vehicle in wintergrasp.
*Do not despawn vehicles when workshop is destroyed or captured.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Wintergrasp.h')
-rw-r--r-- | src/game/Wintergrasp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/Wintergrasp.h b/src/game/Wintergrasp.h index d2dc1571aa9..be8c8cdda22 100644 --- a/src/game/Wintergrasp.h +++ b/src/game/Wintergrasp.h @@ -187,6 +187,8 @@ class OPvPWintergrasp : public OutdoorPvP bool UpdateCreatureInfo(Creature *creature) const; bool UpdateGameObjectInfo(GameObject *go) const; + bool CanBuildVehicle(SiegeWorkshop *workshop) const; + void RebuildAllBuildings(); void VehicleCastSpell(TeamId team, int32 spellId) const; @@ -201,15 +203,15 @@ class SiegeWorkshop : public OPvPCapturePoint void SetTeamByBuildingState(); void ChangeState() {} void ChangeTeam(TeamId oldteam); - void DespawnAllVehicles(); + //void DespawnAllVehicles(); - bool CanBuildVehicle() const { return m_vehicles.size() < MAX_VEHICLE_PER_WORKSHOP && m_buildingState->damageState != DAMAGE_DESTROYED; } + //bool CanBuildVehicle() const { return m_vehicles.size() < MAX_VEHICLE_PER_WORKSHOP && m_buildingState->damageState != DAMAGE_DESTROYED; } uint32 *m_engEntry; uint32 m_engGuid; Creature *m_engineer; uint32 m_workshopGuid; - VehicleSet m_vehicles; + //VehicleSet m_vehicles; BuildingState *m_buildingState; protected: OPvPWintergrasp *m_wintergrasp; |