wesnoth/data/lua/backwards-compatibility.lua
vgaming 8ba6e5f40e fix code problems found by luacheck (#2380)
actual bugs found:
* backwards_compatibility.lua (undeclared global "helper")
* core.lua (use of undeclared global "helper")
* wml_tags.transform_unit had wrong code to deal with recall_cost
* wrong variable name in cave_map_generator
2018-01-20 23:05:58 -05:00

15 lines
536 B
Lua

--! #textdomain wesnoth
-- This file may provide an implementation of Lua functions removed from the engine.
function wesnoth.set_music(cfg)
wesnoth.wml_actions.music(cfg)
end
-- Calling wesnoth.fire isn't the same as calling wesnoth.wml_actions[name] due to the passed vconfig userdata
-- which also provides "constness" of the passed wml object from the point of view of the caller.
-- So please don't remove since it's not deprecated.
function wesnoth.fire(name, cfg)
wesnoth.wml_actions[name](wesnoth.tovconfig(cfg or {}))
end