aboutsummaryrefslogtreecommitdiff
path: root/src/game/Wintergrasp.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-06 20:46:58 +0200
committerMachiavelli <none@none>2009-10-06 20:46:58 +0200
commit43b3f834cfa7403bbfe1ff9a25169278ba4a7259 (patch)
tree35e5faea5052cb894942fd29d3b0dbcbc9a1a7e6 /src/game/Wintergrasp.cpp
parent3bbc0d3324fe5b3101fea689d71e266433bae169 (diff)
* Allow the initialization of the Wintergrasp OutdoorPvP enviroment to be disabled if configured.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Wintergrasp.cpp')
-rw-r--r--src/game/Wintergrasp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp
index 3948e516f4e..fed7c6088a7 100644
--- a/src/game/Wintergrasp.cpp
+++ b/src/game/Wintergrasp.cpp
@@ -75,6 +75,9 @@ typedef std::list<const AreaPOIEntry *> AreaPOIList;
bool OPvPWintergrasp::SetupOutdoorPvP()
{
+ if(!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_ENABLED))
+ return false;
+
m_defender = TeamId(rand()%2);
m_changeDefender = false;