*Do not allow to build vehicles when workshop is destroyed.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-20 16:33:34 -05:00
parent 5bde26a6a9
commit f972a06935
3 changed files with 90 additions and 79 deletions
+3
View File
@@ -192,6 +192,9 @@ class SiegeWorkshop : public OPvPCapturePoint
void SetStateByBuildingState();
void ChangeState();
void DespawnAllVehicles();
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;