mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 17:25:35 +00:00
fixup! Accept [place_shroud]/[remove_shroud] with just a side key
This commit is contained in:
parent
39d31219e5
commit
5cd756f1b0
@ -875,7 +875,7 @@ function wml_actions.place_shroud(cfg)
|
||||
local sides = utils.get_sides(cfg)
|
||||
local tiles = wesnoth.get_locations(cfg)
|
||||
for i,side in ipairs(sides) do
|
||||
wesnoth.place_shroud(side, tiles)
|
||||
wesnoth.place_shroud(side.side, tiles)
|
||||
end
|
||||
end
|
||||
|
||||
@ -883,7 +883,7 @@ function wml_actions.remove_shroud(cfg)
|
||||
local sides = utils.get_sides(cfg)
|
||||
local tiles = wesnoth.get_locations(cfg)
|
||||
for i,side in ipairs(sides) do
|
||||
wesnoth.remove_shroud(side, tiles)
|
||||
wesnoth.remove_shroud(side.side, tiles)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user