WC: Update deprecated uses of get_viewing_side

Addresses #5895
This commit is contained in:
Celtic Minstrel 2021-06-25 19:55:56 -04:00
parent 43e7dadbfc
commit 3159133707
2 changed files with 3 additions and 3 deletions

View file

@ -309,7 +309,7 @@ end
-- shows the recruit info dialog for the faction of the currently viewing side.
function wesnoth.wml_actions.wc2_recruit_info(cfg)
local side_num = wesnoth.get_viewing_side()
local side_num = wesnoth.interface.get_viewing_side()
local faction = wc2_era.get_faction(side_num)
if not faction then
wesnoth.wml_actions.message {
@ -354,7 +354,7 @@ wc2_utils.menu_item {
if u and u.side == wesnoth.current.side then
return false
end
if not wc2_era.get_faction(wesnoth.get_viewing_side()) then
if not wc2_era.get_faction(wesnoth.interface.get_viewing_side()) then
return false
end
if wc2_artifacts.is_item_at(x, y) then

View file

@ -20,7 +20,7 @@ function wesnoth.wml_actions.wc2_show_wocopedia(cfg)
-- maps the treeview rows to pagenumber in the help page.
local index_map = {}
local current_side = wesnoth.get_viewing_side()
local current_side = wesnoth.interface.get_viewing_side()
local preshow = function(dialog)
local str_cat_mechnics = _ "Game Mechanics"
local str_des_mechnics = cfg.mechanics_text or