Author: anonymissimus
Date: Sun Mar 13 22:46:43 2011
New Revision: 48900
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48900&view=rev
Log:
Mute some warning messages in {FORCE_CHANCE_TO_HIT }.
Modified:
trunk/data/core/macros/utils.cfg
Modified: trunk/data/core/macros/utils.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/utils.cfg?rev=48900&r1=48899&r2=48900&view=diff
==============================================================================
--- trunk/data/core/macros/utils.cfg (original)
+++ trunk/data/core/macros/utils.cfg Sun Mar 13 22:46:43 2011
@@ -565,6 +565,12 @@
[then]
{FOREACH unit.attack i}
[if]
+ #This is to mute a warning message about retrieving a
member of non-existant wml container.
+ [variable]
+ name=unit.attack[$i].specials.length
+ greater_than=0
+ [/variable]
+
[variable]
name=unit.attack[$i].specials.chance_to_hit.length
greater_than=0
@@ -644,6 +650,11 @@
{FOREACH second_unit.attack i}
[if]
[variable]
+ name=second_unit.attack[$i].specials.length
+ greater_than=0
+ [/variable]
+
+ [variable]
name=second_unit.attack[$i].specials.chance_to_hit.length
greater_than=0
[/variable]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits