diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-21 21:18:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-21 21:50:54 +0300 |
commit | f8217483ad365e0baee79bcf6166a004bc427bb9 (patch) | |
tree | 1a087e49b16547c71482a66c00715d3dcf84ee29 | |
parent | 40dd461c2539caa67a14d64afb62d2b33def58d8 (diff) | |
download | manaverse-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.gz manaverse-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.bz2 manaverse-f8217483ad365e0baee79bcf6166a004bc427bb9.tar.xz manaverse-f8217483ad365e0baee79bcf6166a004bc427bb9.zip |
Set sync player move distance by default to 5.
-rw-r--r-- | src/configmanager.cpp | 4 | ||||
-rw-r--r-- | src/defaults.cpp | 4 |
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); |