aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKandera <KanderaDev@gmail.com>2012-08-27 10:33:05 -0400
committerKandera <KanderaDev@gmail.com>2012-08-27 10:33:05 -0400
commit9776f6d681b6c5d8a61be34698d4bfc9c6a1b7d5 (patch)
tree386db5e347030e8e6bbecbc1a36daf6b09219aa3 /src
parentfc16106823dde9a3b38dec92b5122e56a55d64a0 (diff)
Core/Wintergrasp: if wintergrasp is disabled make the last door auto trigger.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlefield/Zones/BattlefieldWG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
index 39beb0265c7..70e2f4f1d93 100644
--- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
+++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
@@ -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);