remove apparently unneeded inefficient calls to [redraw] in [(un)petrify]
see also http://forums.wesnoth.org/viewtopic.php?p=531983#p531983 and following
This commit is contained in:
parent
f9046930ae
commit
19354101ff
1 changed files with 0 additions and 2 deletions
|
@ -712,7 +712,6 @@ end
|
|||
function wml_actions.petrify(cfg)
|
||||
for index, unit in ipairs(wesnoth.get_units(cfg)) do
|
||||
unit.status.petrified = true
|
||||
wml_actions.redraw({ side = unit.side }) -- may be unneccessary
|
||||
end
|
||||
|
||||
for index, unit in ipairs(wesnoth.get_recall_units(cfg)) do
|
||||
|
@ -723,7 +722,6 @@ end
|
|||
function wml_actions.unpetrify(cfg)
|
||||
for index, unit in ipairs(wesnoth.get_units(cfg)) do
|
||||
unit.status.petrified = false
|
||||
wml_actions.redraw({ side = unit.side }) -- may be unneccessary
|
||||
end
|
||||
|
||||
for index, unit in ipairs(wesnoth.get_recall_units(cfg)) do
|
||||
|
|
Loading…
Add table
Reference in a new issue