summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-21 21:18:43 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-21 21:50:54 +0300
commitf8217483ad365e0baee79bcf6166a004bc427bb9 (patch)
tree1a087e49b16547c71482a66c00715d3dcf84ee29 /src/configmanager.cpp
parent40dd461c2539caa67a14d64afb62d2b33def58d8 (diff)
downloadmv-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.gz
mv-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.bz2
mv-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.xz
mv-f8217483ad365e0baee79bcf6166a004bc427bb9.zip
Set sync player move distance by default to 5.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index 6105cc752..013750e15 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -413,7 +413,9 @@ void ConfigManager::checkConfigVersion()
if (version < 13)
config.setValue("keyWindowBotChecker", -1);
- config.setValue("cfgver", 13);
+ if (version < 14 && config.getIntValue("syncPlayerMoveDistance") == 2)
+ config.setValue("syncPlayerMoveDistance", 5);
+ config.setValue("cfgver", 14);
}
#undef unassignKey