From: rubenwardy Date: Fri, 17 Oct 2014 16:58:36 +0000 (+0100) Subject: Only set the camera update keymap when using a debug build X-Git-Tag: 0.4.11~136 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8df8554fceeb2eec2103c0222c0a45124e1de7cc;p=oweals%2Fminetest.git Only set the camera update keymap when using a debug build Signed-off-by: Craig Robbins --- diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index e7b0e3745..135fa8762 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -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");