Core/Wintergrasp: if wintergrasp is disabled make the last door auto trigger.
This commit is contained in:
@@ -176,6 +176,8 @@ bool BattlefieldWG::SetupBattlefield()
|
||||
for (uint8 i = 0; i < WG_MAX_OBJ; i++)
|
||||
{
|
||||
GameObject* go = SpawnGameObject(WGGameObjectBuilding[i].entry, WGGameObjectBuilding[i].x, WGGameObjectBuilding[i].y, WGGameObjectBuilding[i].z, WGGameObjectBuilding[i].o);
|
||||
if (!m_IsEnabled && go->GetGOData()->id == 191810)
|
||||
go->SwitchDoorOrButton(true);
|
||||
BfWGGameObjectBuilding* b = new BfWGGameObjectBuilding(this);
|
||||
b->Init(go, WGGameObjectBuilding[i].type, WGGameObjectBuilding[i].WorldState, WGGameObjectBuilding[i].nameId);
|
||||
BuildingsInZone.insert(b);
|
||||
|
||||
Reference in New Issue
Block a user