Skip to content

Commit

Permalink
Found a deprecated thing not in WC
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 20, 2021
1 parent 22fe1e9 commit 0802779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/ai/lua/ai_helper.lua
Expand Up @@ -1118,7 +1118,7 @@ function ai_helper.get_visible_units(viewing_side, filter)
--
-- Required parameters:
-- @viewing_side: must be set to a valid side number. If visibility is to be
-- ignored, use wesnoth.get_units() instead.
-- ignored, use wesnoth.units.find_on_map() instead.
--
-- Optional parameters:
-- @filter: Standard unit filter WML table for the units
Expand Down
4 changes: 2 additions & 2 deletions data/lua/core.lua
Expand Up @@ -431,8 +431,8 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
}
elseif getmetatable(ctx) == "side" then
return {
get = function(path) return wesnoth.get_side_variable(ctx.side, path) end,
set = function(path, val) wesnoth.set_side_variable(ctx.side, path, val) end,
get = function(path) return wesnoth.sides[ctx.side].variables[path] end,
set = function(path, val) wesnoth.sides[ctx.side].variables[path] = val end,
}
elseif getmetatable(ctx) == "unit variables" or getmetatable(ctx) == "side variables" then
return {
Expand Down

0 comments on commit 0802779

Please sign in to comment.