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

                 Summary: A preprocessor error on valid WML
                 Project: Battle for Wesnoth
            Submitted by: zookeeper
            Submitted on: Saturday 11/08/07 at 19:25
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: sapient
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk
        Operating System: winxp

    _______________________________________________________

Details:

Just replace the CHG_TYPE macro in Liberty/scenarios/utils/utils.cfg with
this one:

#define CHG_TYPE UNIT_SIDE TYPEFROM TYPETO
    [store_unit]
        [filter]
            side={UNIT_SIDE}
            type={TYPEFROM}
        [/filter]

        variable=chgtype_store
        kill=yes
    [/store_unit]

    {FOREACH chgtype_store i}
        {VARIABLE chgtype_store[$i].type {TYPETO}}

        [unstore_unit]
            variable=chgtype_store[$i]
        [/unstore_unit]
    {NEXT i}

    {CLEAR_VARIABLE chgtype_store}
#enddef

...and try to start Liberty. You should get a preprocessor error (originating
from that {VARIABLE chgtype_store[$i].type {TYPETO}} line. Remove the line and
the error goes away, as it does if you just replace {TYPETO} in it with a
normal string.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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