Removed [filter*] tags when handling sequence of commands.
This commit is contained in:
parent
4857a03e02
commit
1ea42fde77
1 changed files with 6 additions and 3 deletions
|
@ -282,10 +282,13 @@ 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 = wml_actions[cmd] or
|
||||||
|
helper.wml_error(string.format("[%s] not supported", cmd))
|
||||||
cmd(v[2])
|
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()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue