URL:
  <http://gna.org/bugs/?17402>

                 Summary: ADVANCE_UNIT breaks when second argument is a blank
string
                 Project: Battle for Wesnoth
            Submitted by: bvanevery
            Submitted on: Tue 28 Dec 2010 01:22:10 AM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.3
        Operating System: Windows

    _______________________________________________________

Details:

When the second argument to ADVANCE_UNIT is a blank string, such as

    {ADVANCE_UNIT x,y=$x1,$y1 ""}

the expected behavior is that the filtered unit(s) will advance according to
their standard method of advancement.  In Wesnoth 1.9.3 the ADVANCE_UNIT macro
was rewritten in terms of the new [modify_unit] tag.  Now the behavior of the
macro has changed: when the second argument to ADVANCE_UNIT is left blank,
nothing is done at all.  This breaks code in various campaigns; for example,
if the advancement is used in a "last breath" event to suppress the death of a
unit.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17402>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to