summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-08 21:01:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-08 21:01:50 +0300
commit9c1b552de879776dbc963717753913548d6a82d7 (patch)
tree9e7902f445910d3d345afa88150002f2a222f8e2 /src/configmanager.cpp
parentcb7e5cfdc0cf92d28661f37bbfa91b39ddb92028 (diff)
downloadmv-9c1b552de879776dbc963717753913548d6a82d7.tar.gz
mv-9c1b552de879776dbc963717753913548d6a82d7.tar.bz2
mv-9c1b552de879776dbc963717753913548d6a82d7.tar.xz
mv-9c1b552de879776dbc963717753913548d6a82d7.zip
Umassign default value for attack key.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index 64916ee4f..9fc99dc1f 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -338,7 +338,16 @@ void ConfigManager::checkConfigVersion()
unassignKey("keyDirectLeft", "k107");
unassignKey("keyDirectRight", "k39");
}
- config.setValue("cfgver", 11);
+ if (version < 12)
+ {
+#ifdef USE_SDL2
+ const std::string prefix = std::string("sdl2");
+#else
+ const std::string prefix = std::string();
+#endif
+ unassignKey("keyAttack", "k120");
+ }
+ config.setValue("cfgver", 12);
}
#undef unassignKey