Removed [filter*] tags when handling sequence of commands.

This commit is contained in:
Guillaume Melquiond 2010-07-19 13:19:31 +00:00
parent 4857a03e02
commit 1ea42fde77

View file

@ -282,9 +282,12 @@ end
local function handle_event_commands(cfg) local function handle_event_commands(cfg)
for i = 1, #cfg do for i = 1, #cfg do
local v = cfg[i] local v = cfg[i]
local cmd = wml_actions[v[1]] or local cmd = v[1]
helper.wml_error(string.format("[%s] not supported", v[1])) if not string.find(cmd, "^filter") then
cmd(v[2]) cmd = wml_actions[cmd] or
helper.wml_error(string.format("[%s] not supported", cmd))
cmd(v[2])
end
end end
-- Apply music alterations once all the commands have been processed. -- Apply music alterations once all the commands have been processed.
wesnoth.set_music() wesnoth.set_music()