From 392aeb07a60164a3bb9715284c16b68a8c468498 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 15 Feb 2021 09:59:45 -0500 Subject: [PATCH] Deprecate wesnoth.game_config.version There's no point having the same info in two places --- src/scripting/lua_kernel_base.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripting/lua_kernel_base.cpp b/src/scripting/lua_kernel_base.cpp index 7e72d1d7f136..c879fdde929f 100644 --- a/src/scripting/lua_kernel_base.cpp +++ b/src/scripting/lua_kernel_base.cpp @@ -928,7 +928,9 @@ int lua_kernel_base::impl_game_config_get(lua_State* L) return_int_attrib("recall_cost", game_config::recall_cost); return_int_attrib("kill_experience", game_config::kill_experience); return_int_attrib("combat_experience", game_config::combat_experience); - return_string_attrib("version", game_config::wesnoth_version.str()); + return_string_attrib("version", + (deprecated_message("wesnoth.game_config.version", DEP_LEVEL::INDEFINITE, "1.17", "Use version.current() instead"), + game_config::wesnoth_version.str())); return_bool_attrib("debug", game_config::debug); return_bool_attrib("debug_lua", game_config::debug_lua); return_bool_attrib("strict_lua", game_config::strict_lua);