Author: shadowmaster
Date: Tue Aug 2 02:38:06 2011
New Revision: 50542
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50542&view=rev
Log:
Teach wmllint to fix deprecated implicit side=1 in [store_gold] actions
This uses esr's rule from r50119 rather than patch #2666's.
Modified:
trunk/changelog
trunk/data/tools/wmllint
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=50542&r1=50541&r2=50542&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Tue Aug 2 02:38:06 2011
@@ -63,6 +63,8 @@
* the Falcon line (Falcon, Elder Falcon) now get 2 traits, one normal
trait and the feral trait
* decreased the impact resist of the Falcon line from 0% to -10%
* The Naffat line (Naffat, Qatif-al-nar, Tineen) is no longer able to
get the strong trait
+ * Miscellaneous and bug fixes:
+ * Teach wmllint to fix deprecated implicit side=1 in [store_gold] actions
Version 1.9.8:
* Campaigns:
Modified: trunk/data/tools/wmllint
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=50542&r1=50541&r2=50542&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Tue Aug 2 02:38:06 2011
@@ -547,7 +547,7 @@
if closer == "unit" and attributes.get("id") is not None and
attributes.get("type") is not None and attributes.get("side") is None and not
"side" in ancestors:
print '"%s", line %d: unit declaration without side attribute' % \
(filename, lineno)
- if closer in ["set_recruit", "allow_recruit", "disallow_recruit"] and
"side" not in attributes:
+ if closer in ["set_recruit", "allow_recruit", "disallow_recruit",
"store_gold"] and "side" not in attributes:
print '"%s", line %d: %s requires "side" attribute but has none' % \
(filename, lineno, closer)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits