diff --git a/src/preferences/advanced.cpp b/src/preferences/advanced.cpp index bebdaf2d669..2a29f5f459b 100644 --- a/src/preferences/advanced.cpp +++ b/src/preferences/advanced.cpp @@ -15,6 +15,7 @@ #include "preferences/advanced.hpp" #include "game_config_view.hpp" +#include "game_version.hpp" #include "gettext.hpp" #include "log.hpp" @@ -39,6 +40,15 @@ advanced_manager::advanced_manager(const game_config_view& gc) } } + // show_deprecation has a different default on the dev branch + if(game_config::wesnoth_version.is_dev_version()) { + for(option& op : prefs) { + if(op.field == "show_deprecation") { + op.cfg["default"] = true; + } + } + } + std::sort(prefs.begin(), prefs.end(), [](const auto& lhs, const auto& rhs) { return translation::icompare(lhs.name, rhs.name) < 0; }); }