diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-22 17:03:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-22 17:03:20 +0300 |
commit | 7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58 (patch) | |
tree | 83f7b7d4395e57c1d444130eee4503d3046962fd /src | |
parent | 3c11193b4adffcaf7cbd9cd3375bcdd0252a6782 (diff) | |
download | plus-7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58.tar.gz plus-7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58.tar.bz2 plus-7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58.tar.xz plus-7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58.zip |
Add option for paths.xml for enable/disable new mail system.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/defaults.cpp | 2 | ||||
-rw-r--r-- | src/settings.h | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index f2e565bdd..b59033213 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1737,6 +1737,7 @@ void Client::initPaths() settings.playerBadgeAtRightOffset = paths.getIntValue( "playerBadgeAtRightOffset"); settings.unknownSkillsAutoTab = paths.getBoolValue("unknownSkillsAutoTab"); + settings.enableNewMailSystem = paths.getBoolValue("enableNewMailSystem"); } void Client::initTradeFilter() diff --git a/src/defaults.cpp b/src/defaults.cpp index 03e78bacb..5a26ba8f8 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -709,6 +709,8 @@ DefaultsData* getPathsDefaults() AddDEF("gmDefaultLevel", 60); #endif // TMWA_SUPPORT + AddDEF("enableNewMailSystem", true); + return configData; } diff --git a/src/settings.h b/src/settings.h index 760ee3e37..308da0202 100644 --- a/src/settings.h +++ b/src/settings.h @@ -92,7 +92,8 @@ class Settings final legacyEffects(true), enableRemoteCommands(true), uselonglivesprites(false), - unknownSkillsAutoTab(true) + unknownSkillsAutoTab(true), + enableNewMailSystem(true) { } A_DELETE_COPY(Settings) @@ -157,6 +158,7 @@ class Settings final bool enableRemoteCommands; bool uselonglivesprites; bool unknownSkillsAutoTab; + bool enableNewMailSystem; }; extern Settings settings; |