Skip to content

Commit

Permalink
Deprecate wesnoth.game_config.version
Browse files Browse the repository at this point in the history
There's no point having the same info in two places
  • Loading branch information
CelticMinstrel committed Feb 15, 2021
1 parent f214a67 commit 5b887c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripting/lua_kernel_base.cpp
Expand Up @@ -918,7 +918,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("mp_debug", game_config::mp_debug);
Expand Down

0 comments on commit 5b887c3

Please sign in to comment.