summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 15:55:06 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 15:55:06 +0300
commit8d4da1c2a0d22f941b0818a46710b7f347b5cd01 (patch)
tree779c7fd3ead59bf1d04aca37079a95891ecc8b51 /src/client.cpp
parent496aac0aa96676ed944bc123fc24eac33e8b3542 (diff)
downloadplus-8d4da1c2a0d22f941b0818a46710b7f347b5cd01.tar.gz
plus-8d4da1c2a0d22f941b0818a46710b7f347b5cd01.tar.bz2
plus-8d4da1c2a0d22f941b0818a46710b7f347b5cd01.tar.xz
plus-8d4da1c2a0d22f941b0818a46710b7f347b5cd01.zip
Add into paths.xml chars for gm command and char gm command.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b0e133ca1..e9869e804 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -277,6 +277,7 @@ void Client::gameInit()
Net::loadIgnorePackets();
paths.setDefaultValues(getPathsDefaults());
initFeatures();
+ initPaths();
logger->log("init 4");
logger->setDebugLog(config.getBoolValue("debugLog"));
logger->setReportUnimplimented(config.getBoolValue("unimplimentedLog"));
@@ -1249,6 +1250,7 @@ int Client::gameExec()
logger->log("Init paths");
paths.init("paths.xml", UseResman_true);
paths.setDefaultValues(getPathsDefaults());
+ initPaths();
if (!SpriteReference::Empty)
{
SpriteReference::Empty = new SpriteReference(
@@ -1792,6 +1794,12 @@ void Client::initFeatures()
settings.fixDeadAnimation = features.getBoolValue("fixDeadAnimation");
}
+void Client::initPaths()
+{
+ settings.gmCommandSymbol = paths.getStringValue("gmCommandSymbol");
+ settings.gmCharCommandSymbol = paths.getStringValue("gmCharCommandSymbol");
+}
+
void Client::initTradeFilter()
{
const std::string tradeListName =