mail[Wesnoth-commits] r44365 - /trunk/data/lua/wml-tags.lua


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 19, 2010 - 15:19:
Author: silene
Date: Mon Jul 19 15:19:31 2010
New Revision: 44365

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44365&view=rev
Log:
Removed [filter*] tags when handling sequence of commands.

Modified:
    trunk/data/lua/wml-tags.lua

Modified: trunk/data/lua/wml-tags.lua
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml-tags.lua?rev=44365&r1=44364&r2=44365&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Mon Jul 19 15:19:31 2010
@@ -282,9 +282,12 @@
 local function handle_event_commands(cfg)
        for i = 1, #cfg do
                local v = cfg[i]
-               local cmd = wml_actions[v[1]] or
-                       helper.wml_error(string.format("[%s] not supported", 
v[1]))
-               cmd(v[2])
+               local cmd = 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])
+               end
        end
        -- Apply music alterations once all the commands have been processed.
        wesnoth.set_music()




Related Messages


Powered by MHonArc, Updated Mon Jul 19 15:20:05 2010