summaryrefslogtreecommitdiff
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
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.
-rw-r--r--src/configmanager.cpp4
-rw-r--r--src/defaults.cpp4
2 files changed, 5 insertions, 3 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
diff --git a/src/defaults.cpp b/src/defaults.cpp
index 327a4db73..be736f48a 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -103,7 +103,7 @@ DefaultsData* getConfigDefaults()
AddDEF("followMode", 0);
AddDEF("imitationMode", 0);
AddDEF("syncPlayerMove", true);
- AddDEF("syncPlayerMoveDistance", 2);
+ AddDEF("syncPlayerMoveDistance", 5);
AddDEF("drawPath", false);
AddDEF("moveToTargetType", 10);
AddDEF("crazyMoveProgram", "mumrsonmdmlon");
@@ -359,7 +359,7 @@ DefaultsData* getConfigDefaults()
AddDEF("uselonglivesprites", false);
AddDEF("uselonglivesounds", true);
AddDEF("screenDensity", 0);
- AddDEF("cfgver", 13);
+ AddDEF("cfgver", 14);
AddDEF("enableDebugLog", false);
AddDEF("doubleClick", true);
AddDEF("useDiagonalSpeed", true);