summaryrefslogtreecommitdiff
path: root/src/game-server/mapcomposite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r--src/game-server/mapcomposite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp
index e7267d08..6145ecc1 100644
--- a/src/game-server/mapcomposite.cpp
+++ b/src/game-server/mapcomposite.cpp
@@ -23,6 +23,7 @@
#include <cassert>
#include "point.h"
+#include "common/configuration.hpp"
#include "game-server/map.hpp"
#include "game-server/mapcomposite.hpp"
#include "game-server/character.hpp"
@@ -534,6 +535,8 @@ void MapComposite::setMap(Map *m)
mContent = new MapContent(m);
std::string sPvP = m->getProperty ("pvp");
+ if (sPvP == "") sPvP = Configuration::getValue("defaultPvp", "");
+
if (sPvP == "free") mPvPRules = PVP_FREE;
else if (sPvP == "none") mPvPRules = PVP_NONE;
else mPvPRules = PVP_NONE;