Author: fendrin
Date: Fri May 13 18:16:37 2011
New Revision: 49499

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49499&view=rev
Log:
Corrected Indentation.

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=49499&r1=49498&r2=49499&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Fri May 13 18:16:37 2011
@@ -129,28 +129,27 @@
 end
 
 function wml_actions.allow_recruit(cfg)
-   for side_number, team in ipairs(wesnoth.get_sides(nil, cfg, true)) do
-      local v = team.recruit
-      for type in string.gmatch(cfg.type, "[^%s,][^,]*") do 
-        table.insert(v, type)
-        wesnoth.add_known_unit(type)
-      end
-      team.recruit = v
-   end
+       for side_number, team in ipairs(wesnoth.get_sides(nil, cfg, true)) do
+               local v = team.recruit
+               for type in string.gmatch(cfg.type, "[^%s,][^,]*") do 
+                       table.insert(v, type)
+                       wesnoth.add_known_unit(type)
+               end
+               team.recruit = v
+       end
 end
 
 function wml_actions.allow_extra_recruit(cfg)
-   local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[allow_extra_recruit] missing required [filter] tag")
-   local types = cfg.type or helper.wml_error("[allow_extra_recruit] missing 
required type= attribute")
-
-   for index, unit in ipairs(wesnoth.get_units(filter)) do
-      local v = unit.extra_recruit 
-      for type in string.gmatch(types, "[^%s,][^,]*") do
-        table.insert(v, type)
-        wesnoth.add_known_unit(type)
-      end
-      unit.extra_recruit = v
-   end
+       local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[allow_extra_recruit] missing required [filter] tag")
+       local types = cfg.type or helper.wml_error("[allow_extra_recruit] 
missing required type= attribute")
+       for index, unit in ipairs(wesnoth.get_units(filter)) do
+               local v = unit.extra_recruit 
+               for type in string.gmatch(types, "[^%s,][^,]*") do
+                       table.insert(v, type)
+                       wesnoth.add_known_unit(type)
+               end
+       unit.extra_recruit = v
+       end
 end
 
 function wml_actions.disallow_recruit(cfg)
@@ -169,20 +168,20 @@
 end
 
 function wml_actions.disallow_extra_recruit(cfg)
-   local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
-   local types = cfg.type or helper.wml_error("[allow_extra_recruit] missing 
required type= attribute")
-   for index, unit in ipairs(wesnoth.get_units(filter)) do
-      local v = unit.extra_recruit
-      for w in string.gmatch(types, "[^%s,][^,]*") do
-        for i, r in ipairs(v) do
-           if r == w then
-              table.remove(v, i)
-              break
-           end
-        end
-      end
-      unit.extra_recruit = v
-   end
+       local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
+       local types = cfg.type or helper.wml_error("[allow_extra_recruit] 
missing required type= attribute")
+       for index, unit in ipairs(wesnoth.get_units(filter)) do
+               local v = unit.extra_recruit
+               for w in string.gmatch(types, "[^%s,][^,]*") do
+                       for i, r in ipairs(v) do
+                               if r == w then
+                                       table.remove(v, i)
+                                       break
+                               end
+                       end
+               end
+               unit.extra_recruit = v
+       end
 end
 
 function wml_actions.set_recruit(cfg)
@@ -197,17 +196,17 @@
 end
 
 function wml_actions.set_extra_recruit(cfg)
-  local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
-   local recruit = cfg.extra_recruit or helper.wml_error("[set_extra_recruit] 
missing required extra_recruit= attribute")
-   local v = {}
-
-   for w in string.gmatch(recruit, "[^%s,][^,]*") do
-      table.insert(v, w)
-   end
-
-   for index, unit in ipairs(wesnoth.get_units(filter)) do
-      unit.extra_recruit = v
-   end
+       local filter = helper.get_child(cfg, "filter") or 
helper.wml_error("[disallow_extra_recruit] missing required [filter] tag")
+       local recruit = cfg.extra_recruit or 
helper.wml_error("[set_extra_recruit] missing required extra_recruit= 
attribute")
+       local v = {}
+
+       for w in string.gmatch(recruit, "[^%s,][^,]*") do
+               table.insert(v, w)
+       end
+
+       for index, unit in ipairs(wesnoth.get_units(filter)) do
+               unit.extra_recruit = v
+       end
 end
 
 function wml_actions.store_map_dimensions(cfg)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to