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:
Anonymissimus 2012-06-29 17:34:08 +00:00
parent f9046930ae
commit 19354101ff

View file

@ -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