summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-11 01:15:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-11 01:15:25 +0300
commit3e68cc3b6a3e45c2c552b7cae6b34557bed96dbc (patch)
treed57a55d9d3834d1d19b393aceaaead4489ed7a22 /src/configuration.cpp
parent5459411ec64d09895f6a5a2944cf4215a3ea1c1a (diff)
downloadmanaverse-3e68cc3b6a3e45c2c552b7cae6b34557bed96dbc.tar.gz
manaverse-3e68cc3b6a3e45c2c552b7cae6b34557bed96dbc.tar.bz2
manaverse-3e68cc3b6a3e45c2c552b7cae6b34557bed96dbc.tar.xz
manaverse-3e68cc3b6a3e45c2c552b7cae6b34557bed96dbc.zip
Fix removing old unused keys from main configuration file.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 36a1a724f..54420a9f3 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -49,6 +49,7 @@ const std::string unusedKeys[] =
{
"AttackRange",
"emoteshortcut0",
+ "screenshotDirectory2",
"AttackRangeBorder",
"AttackRangeBorderDelay",
"AttackRangeBorderGradient",
@@ -205,7 +206,6 @@ const std::string unusedKeys[] =
"playerHomes",
"remember",
"screenshotDirectory",
- "screenshotDirectory2",
""
};
@@ -894,7 +894,8 @@ void Configuration::removeListeners(ConfigListener *const listener)
void Configuration::removeOldKeys()
{
if (mOptions.find(unusedKeys[0]) != mOptions.end()
- || mOptions.find(unusedKeys[1]) != mOptions.end())
+ || mOptions.find(unusedKeys[1]) != mOptions.end()
+ || mOptions.find(unusedKeys[2]) != mOptions.end())
{
int f = 0;
while (unusedKeys[f] != "")