mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 03:24:38 +00:00
removed unused local function get_team
All of the side-taking lua tags have now a SSF, except for capture_village for which I yet don't have a good idea how to deal with.
This commit is contained in:
parent
f6e09f4f72
commit
da3ae555d6
@ -37,14 +37,6 @@ function wml_actions.message(cfg)
|
||||
end
|
||||
end
|
||||
|
||||
local function get_team(side, tag)
|
||||
side = tonumber(side or 1) or
|
||||
helper.wml_error(tag .. " given a noninteger side= attribute.")
|
||||
local team = wesnoth.sides[side] or
|
||||
helper.wml_error(tag .. " given an invalid side= attribute.")
|
||||
return team
|
||||
end
|
||||
|
||||
function wml_actions.chat(cfg)
|
||||
local side_list = wesnoth.get_sides(cfg)
|
||||
local message = tostring(cfg.message) or
|
||||
|
Loading…
x
Reference in New Issue
Block a user