diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-29 18:14:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-29 18:14:17 +0300 |
commit | 9327a603fcc3c1b3ff91ae21e478094b30a32f7f (patch) | |
tree | df7a6c4cf2b0306b3c75a486c61881697bfc552a | |
parent | e70d551884c0e11408176086a25d359987090003 (diff) | |
download | manaverse-9327a603fcc3c1b3ff91ae21e478094b30a32f7f.tar.gz manaverse-9327a603fcc3c1b3ff91ae21e478094b30a32f7f.tar.bz2 manaverse-9327a603fcc3c1b3ff91ae21e478094b30a32f7f.tar.xz manaverse-9327a603fcc3c1b3ff91ae21e478094b30a32f7f.zip |
Fix per server config default values.
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/defaults.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 5f79176c7..0324bb8cc 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1697,6 +1697,7 @@ void Client::initServerConfig(std::string serverName) { fclose(configFile); serverConfig.init(configPath); + serverConfig.setDefaultValues(getConfigDefaults()); logger->log("serverConfigPath: " + configPath); } initPacketLimiter(); diff --git a/src/defaults.cpp b/src/defaults.cpp index 3e53506b4..87771c427 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -229,6 +229,7 @@ DefaultsData* getConfigDefaults() AddDEF(configData, "grabinput", false); AddDEF(configData, "gamma", 1); AddDEF(configData, "vsync", 0); + AddDEF(configData, "enableBuggyServers", true); AddDEF(configData, "soundwhisper", "newmessage"); AddDEF(configData, "soundhighlight", "reminder"); AddDEF(configData, "soundglobal", "email"); |