Put fixed passability check on separate line
This commit is contained in:
parent
b2d054253f
commit
b563d8d8cd
1 changed files with 2 additions and 1 deletions
|
@ -506,7 +506,8 @@ function wml_actions.move_unit(cfg)
|
|||
local to_y = tostring(cfg.to_y or helper.wml_error(coordinate_error))
|
||||
local fire_event = cfg.fire_event
|
||||
local muf_force_scroll = cfg.force_scroll
|
||||
local check_passability = cfg.check_passability; if check_passability == nil then check_passability = true end
|
||||
local check_passability = cfg.check_passability
|
||||
if check_passability == nil then check_passability = true end
|
||||
cfg = helper.literal(cfg)
|
||||
cfg.to_x, cfg.to_y, cfg.fire_event = nil, nil, nil
|
||||
local units = wesnoth.get_units(cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue