Only set the camera update keymap when using a debug build
authorrubenwardy <rubenwardy@gmail.com>
Fri, 17 Oct 2014 16:58:36 +0000 (17:58 +0100)
committerCraig Robbins <kde.psych@gmail.com>
Wed, 26 Nov 2014 11:53:01 +0000 (21:53 +1000)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
src/defaultsettings.cpp

index e7b0e374516fd7a6157ac92064b84d68d24819c9..135fa8762efb88b0c64b427e805dd7eaeb96cd8d 100644 (file)
@@ -52,7 +52,12 @@ void set_default_settings(Settings *settings)
        settings->setDefault("keymap_toggle_hud", "KEY_F1");
        settings->setDefault("keymap_toggle_chat", "KEY_F2");
        settings->setDefault("keymap_toggle_force_fog_off", "KEY_F3");
-       settings->setDefault("keymap_toggle_update_camera", "KEY_F4");
+       settings->setDefault("keymap_toggle_update_camera",
+#if DEBUG
+                       "KEY_F4");
+#else
+                       "none");
+#endif
        settings->setDefault("keymap_toggle_debug", "KEY_F5");
        settings->setDefault("keymap_toggle_profiler", "KEY_F6");
        settings->setDefault("keymap_camera_mode", "KEY_F7");