Skip to content

Commit

Permalink
Add wenoth.set_music compatibility function
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 24, 2017
1 parent 5b79669 commit 7ea83d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/lua/backwards-compatibility.lua
Expand Up @@ -4,6 +4,10 @@

local helper = wesnoth.require "lua/helper.lua"

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.
Expand Down

0 comments on commit 7ea83d4

Please sign in to comment.